[PATCH 6 of 6] Disable premerge by default

Mads Kiilerich mads at kiilerich.com
Wed Sep 17 14:06:23 CDT 2008


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1221678330 -7200
# Node ID cbcfa087b5f8708b5d794f5ae1f4202e643b97bc
# Parent  daa237db419ccf4f75bc541c7b019d2bba8cdf8b
Disable premerge by default
Premerge silently merges file content if possible. The result is in some cases
not what the user wants. Having it enabled by default isn't safe and isn't
mercurial-ish.

I think this is a part of the right solution to issue1295.

diff -r daa237db419c -r cbcfa087b5f8 mercurial/filemerge.py
--- a/mercurial/filemerge.py	Wed Sep 17 21:05:28 2008 +0200
+++ b/mercurial/filemerge.py	Wed Sep 17 21:05:30 2008 +0200
@@ -166,7 +166,7 @@
     repo.ui.debug(_("my %s other %s ancestor %s\n") % (fcd, fco, fca))
 
     # do we attempt to simplemerge first?
-    if _toolbool(ui, tool, "premerge", not (binary or symlink)):
+    if _toolbool(ui, tool, "premerge", False):
         r = simplemerge.simplemerge(a, b, c, quiet=True)
         if not r:
             ui.debug(_(" premerge successful\n"))


More information about the Mercurial-devel mailing list