diff -r 12312f066d93 -r 53433d8f1faa mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Apr 17 20:01:39 2014 +0200 +++ b/mercurial/localrepo.py Thu Apr 17 20:01:39 2014 +0200 @@ -1168,7 +1168,7 @@ fparent1, fparent2 = fparent2, nullid elif fparent2 != nullid: # is one parent an ancestor of the other? - fparentancestors = flog.commonancestors(fparent1, fparent2) + fparentancestors = flog.commonancestorsheads(fparent1, fparent2) if fparent1 in fparentancestors: fparent1, fparent2 = fparent2, nullid elif fparent2 in fparentancestors: