mergetools.hgrc: set vimdiff to check=changed stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 02 Aug 2012 13:51:49 +0200
branchstable
changeset 17422 93bc65e970c0
parent 17421 3eb85477c0d9
child 17423 63e9b0732518
mergetools.hgrc: set vimdiff to check=changed The standard reaction in from of unexpected vimdiff is to ":quit". This will make vimdiff return a 0 status even if no merge were done at all. This change detect that nothing have been changed in vimdiff as a potential unresolved conflict.
contrib/mergetools.hgrc
--- a/contrib/mergetools.hgrc	Wed Aug 29 02:09:43 2012 +0200
+++ b/contrib/mergetools.hgrc	Thu Aug 02 13:51:49 2012 +0200
@@ -16,6 +16,7 @@
 gvimdiff.priority=-9
 
 vimdiff.args=$local $other $base
+vimdiff.check=changed
 vimdiff.priority=-10
 
 merge.checkconflicts=True