wire protocol: avoid infinite loop (issue1483)
authorMatt Mackall <mpm@selenic.com>
Sun, 25 Jan 2009 10:16:45 -0600
changeset 7708 a32847fa0df0
parent 7675 011e69b96c69
child 7709 752325f2208d
child 7802 dd970a311ea8
wire protocol: avoid infinite loop (issue1483)
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Jan 21 11:15:47 2009 -0600
+++ b/mercurial/localrepo.py	Sun Jan 25 10:16:45 2009 -0600
@@ -1237,7 +1237,7 @@
             n, l, i = top, [], 0
             f = 1
 
-            while n != bottom:
+            while n != bottom and n != nullid:
                 p = self.changelog.parents(n)[0]
                 if i == f:
                     l.append(n)