[PATCH 4 of 7 mergedriver] localrepo.commit: abort if merge driver's conclude step hasn't been run yet

Siddharth Agarwal sid0 at fb.com
Fri Oct 16 21:35:17 CDT 2015


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1444896152 25200
#      Thu Oct 15 01:02:32 2015 -0700
# Node ID b26471af00081117969f3d2bd2a35891dc76f91e
# Parent  d5ffcf6fd5b81033c08ca68ea97b2b2a1382befc
localrepo.commit: abort if merge driver's conclude step hasn't been run yet

This case also requires 'hg resolve --all' to be run before continuing.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1565,7 +1565,7 @@ class localrepository(object):
             if unresolved:
                 raise error.Abort(_('unresolved merge conflicts '
                                     '(see "hg help resolve")'))
-            if driverresolved:
+            if driverresolved or ms.mdstate() != 's':
                 raise error.Abort(_('driver-resolved merge conflicts'),
                                   hint=_('run "hg resolve --all" to resolve'))
 


More information about the Mercurial-devel mailing list