changeset 7708:a32847fa0df0

wire protocol: avoid infinite loop (issue1483)
author Matt Mackall <mpm@selenic.com>
date Sun, 25 Jan 2009 10:16:45 -0600
parents 011e69b96c69
children 752325f2208d dd970a311ea8
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)