changeset 1459:106fdec8e1fb

Fix small bug in nodesbetween if heads is [nullid].
author Eric Hopper <hopper@omnifarious.org>
date Fri, 07 Oct 2005 17:07:57 -0700
parents 1033892bbb87
children 40d08cf1c544
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Fri Oct 07 10:57:11 2005 -0700
+++ b/mercurial/revlog.py	Fri Oct 07 17:07:57 2005 -0700
@@ -310,6 +310,8 @@
                         # So it is, real heads should not be the ancestors of
                         # any other heads.
                         heads.pop(n)
+            if not ancestors:
+                return ([], [], [])
             # Now that we have our set of ancestors, we want to remove any
             # roots that are not ancestors.