[PATCH] Fix meld.args in mergetools.rc: add -o $output

Völker Ronny ronny.voelker at elaxy.de
Thu Mar 28 02:48:43 CDT 2013


# HG changeset patch
# User ronvoe12249 <ronny.voelker at elaxy.com>
# Date 1361454565 -3600
# Node ID 1873dc48d8ce764436f9b4904dd3c29d2f7ff90a
# Parent  fabbaa250977ad337a36b1c4cece22da94adfe4b
mergetools.hgrc meld.args: avoid loosing the merged version

Rename the center panel to 'merged', to make it clear that this panel will contain
the merged version (as it is intended by Meld).

Add -o $output, to avoid loosing the merged version.
With the previous configuration, the merged version was written to the wrong
file ($base, a temporary file, which is ignored by Mercurial).

Add --auto-merge, to enable automatic merging of all non-conflicting changes.

diff -r fabbaa250977 -r 1873dc48d8ce contrib/mergetools.hgrc
--- a/contrib/mergetools.hgrc	Sat Feb 09 21:51:21 2013 +0000
+++ b/contrib/mergetools.hgrc	Thu Feb 21 14:49:25 2013 +0100
@@ -25,7 +25,9 @@
 gpyfm.gui=True
 
 meld.gui=True
-meld.args=--label='local' $local --label='base' $base --label='other' $other
+meld.args=--label='local' $local --label='merged' $base --label='other' $other -o $output --auto-merge
+;The option --auto-merge requires meld 1.7 or younger. For older versions use:
+;meld.args=--label='local' $local --label='target' $base --label='other' $other -o $output
 meld.diffargs=-a --label='$plabel1' $parent --label='$clabel' $child
 
 tkdiff.args=$local $other -a $base -o $output


More information about the Mercurial-devel mailing list