]> thyrsus.com Git - src.git/commitdiff
First use of links built during parse. Regression test passes.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 15 Nov 2014 05:18:26 +0000 (00:18 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 15 Nov 2014 05:18:26 +0000 (00:18 -0500)
src

diff --git a/src b/src
index 86cefb8d502754c783da63d877d26581e9046a68..cbacf0bc96b29fb58c2d7d957e80294d7511507e 100755 (executable)
--- a/src
+++ b/src
@@ -233,15 +233,12 @@ class History:
         "Return the tip revision of the branch of the given native revision."
         if rev is None:
             rev = self.current()
-        s = self.native_to_revno(rev)
+        s = self.by_native_d[rev]
         while True:
-            rev = self.revno_to_native(s)
-            rev = backend.succ(rev)
-            nxt = self.native_to_revno(rev)
-            if nxt is None:
-                return self.by_revno(s)
+            if s.child == None:
+                return s
             else:
-                s = nxt
+                s = s.child
     def native_to_revno(self, revision):
         "Map a native ID to a revno"
         item = self.by_native_d.get(revision)