# HG changeset patch # User Benoit Boissinot # Date 1148425299 -7200 # Node ID 4f7745fc9823c5c71f9d0ac59d88cb7afc774046 # Parent dbdce3b999887f9bba2cb70f51788589bad30e24 n is always 'True', we can only stop the loop with the break statement diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -872,7 +872,7 @@ class localrepository(object): b = [] for n in nodes: t = n - while n: + while 1: p = self.changelog.parents(n) if p[1] != nullid or p[0] == nullid: b.append((t, n, p[0], p[1]))