diff mercurial/revlog.py @ 854:473c030d34a6

Fixed revlog.children. It was comparing a node to a rev, then appending a rev onto the list of children being constructed instead of a node.
author Tristan Wibberley <tristan@wibberley.org>
date Sat, 06 Aug 2005 21:58:28 +0100
parents b3bba126b04a
children c2e77581bc84 d4cb383e7de7 62ec665759f2 01215ad04283
line wrap: on
line diff
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -185,8 +185,8 @@ class revlog:
         for r in range(p + 1, self.count()):
             n = self.node(r)
             for pn in self.parents(n):
-                if pn == p:
-                    c.append(p)
+                if pn == node:
+                    c.append(n)
                     continue
                 elif pn == nullid:
                     continue