Fix small bug in nodesbetween if heads is [nullid].
authorEric Hopper <hopper@omnifarious.org>
Fri, 07 Oct 2005 17:07:57 -0700
changeset 1459 106fdec8e1fb
parent 1458 1033892bbb87
child 1460 40d08cf1c544
Fix small bug in nodesbetween if heads is [nullid].
mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -310,6 +310,8 @@ class revlog:
                         # 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.