mergetools.hgrc: add minimal configuration for editmerge
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 29 May 2014 12:25:25 -0700
changeset 21632 3191d330302f
parent 21631 9bafe09285f2
child 21633 0ae44984b8d9
mergetools.hgrc: add minimal configuration for editmerge The ``editmerge`` script is shipped in contrib and opens an editor on every conflicting file. It needs minimal configuration to inject the config marker in the file before opening. Otherwise it behaves the same as ``internal:local`` and bad things happen.
contrib/mergetools.hgrc
--- a/contrib/mergetools.hgrc	Thu May 29 15:41:16 2014 -0700
+++ b/contrib/mergetools.hgrc	Thu May 29 12:25:25 2014 -0700
@@ -71,6 +71,12 @@
 ecmerge.gui=True
 ecmerge.diffargs=$parent $child --mode=diff2 --title1='$plabel1' --title2='$clabel'
 
+# editmerge is a small script shipped in contrib.
+# It needs this config otherwise it behaves the same as internal:local
+editmerge.args=$output
+editmerge.check=changed
+editmerge.premerge=keep
+
 filemerge.executable=/Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/FileMerge
 filemerge.args=-left $other -right $local -ancestor $base -merge $output
 filemerge.gui=True