[PATCH 3 of 5 mergedriver] resolve: record dirstate actions after performing resolutions

Siddharth Agarwal sid0 at fb.com
Mon Nov 23 00:00:49 CST 2015


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1447651642 28800
#      Sun Nov 15 21:27:22 2015 -0800
# Node ID bc37d2bf7a29597601a08bbb37139a1b80550c39
# Parent  cbe7da5c76664eda2c9ab0369a0fa2f6ceff981c
# Available At http://42.netv6.net/sid0-wip/hg/
#              hg pull http://42.netv6.net/sid0-wip/hg/ -r bc37d2bf7a29
resolve: record dirstate actions after performing resolutions

Some resolutions might lead to pending actions we need to perform in the
dirstate -- so perform them.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5711,6 +5711,7 @@ def resolve(ui, repo, *pats, **opts):
                     raise
 
         ms.commit()
+        ms.recordactions()
 
         if not didwork and pats:
             ui.warn(_("arguments do not match paths that need resolving\n"))


More information about the Mercurial-devel mailing list