--- a/mercurial/localrepo.py Sun Jan 25 18:55:29 2009 +0100+++ b/mercurial/localrepo.py Sun Jan 25 19:15:49 2009 +0100@@ -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)