diff mercurial/filemerge.py @ 27164:88d5db4b155c

filemerge: default regular prompts to 'leave unresolved' (BC) It makes far more sense to leave these conflicts unresolved and kick back to the user than to just assume that the local version be chosen. There are almost certainly buggy scripts and applications using Mercurial in the wild that do merges or rebases non-interactively, and then assume that if the operation succeeded there's nothing the user needs to pay attention to.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 01 Dec 2015 09:48:38 -0800
parents 27b89a0957ec
children ad5966de3c9a
line wrap: on
line diff
--- a/mercurial/filemerge.py	Mon Nov 30 13:43:55 2015 -0800
+++ b/mercurial/filemerge.py	Tue Dec 01 09:48:38 2015 -0800
@@ -253,7 +253,7 @@
             index = ui.promptchoice(
                 _("no tool found to merge %s\n"
                   "keep (l)ocal, take (o)ther, or leave (u)nresolved?"
-                  "$$ &Local $$ &Other $$ &Unresolved") % fd, 0)
+                  "$$ &Local $$ &Other $$ &Unresolved") % fd, 2)
             choice = ['local', 'other', 'unresolved'][index]
 
         if choice == 'other':