--- a/mercurial/localrepo.py Sun Jan 25 12:07:41 2009 -0600
+++ b/mercurial/localrepo.py Sun Jan 25 12:09:51 2009 -0600
@@ -1242,7 +1242,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)