changeset 2345:4f7745fc9823

n is always 'True', we can only stop the loop with the break statement
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 24 May 2006 01:01:39 +0200
parents dbdce3b99988
children 925610b2d90a
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu May 18 23:31:12 2006 -0700
+++ b/mercurial/localrepo.py	Wed May 24 01:01:39 2006 +0200
@@ -872,7 +872,7 @@
         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]))