Patchwork D6609: tweakdefaults: make hg resolve require --re-merge flag to re-merge

login
register
mail settings
Submitter phabricator
Date July 7, 2019, 4:09 p.m.
Message ID <differential-rev-PHID-DREV-oa4sqo6nxdkqcn2dqng5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/40803/
State Superseded
Headers show

Comments

phabricator - July 7, 2019, 4:09 p.m.
valentin.gatienbaron created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Pulkit suggested it in https://phab.mercurial-scm.org/D4379, and a
  discussion with Octobus people reminded me that people still use the
  error-prone default behavior of `hg resolve`.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6609

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -68,6 +68,8 @@ 
 update.check = noconflict
 # Show conflicts information in `hg status`
 status.verbose = True
+# Make `hg resolve` with no action (like `-m`) fail instead of re-merging.
+resolve.explicit-re-merge = True
 
 [diff]
 git = 1