# HG changeset patch # User Tristan Wibberley # Date 2005-08-06 20:58:28 # Node ID 473c030d34a6484bafad4dcf4b00b45edd738edb # Parent b8ff3f8c406239599323a6ed6c1ae9bb0cfdc47c 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. diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- 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