merge: 0 is a valid ancestor different from None
authorMads Kiilerich <madski@unity3d.com>
Sun, 30 Nov 2014 19:26:53 +0100
changeset 23405 2a038deeac9a
parent 23404 b913c394386f
child 23406 65f215ea3e8e
merge: 0 is a valid ancestor different from None Most internal functions can take either a hash or an integer. Merge did however not handle 0 as revision 0. Now it does.
mercurial/merge.py
--- a/mercurial/merge.py	Thu Nov 27 12:25:01 2014 -0600
+++ b/mercurial/merge.py	Sun Nov 30 19:26:53 2014 +0100
@@ -968,7 +968,7 @@
         pl = wc.parents()
         p1 = pl[0]
         pas = [None]
-        if ancestor:
+        if ancestor is not None:
             pas = [repo[ancestor]]
 
         if node is None: