# HG changeset patch # User Steve Borho # Date 1287462014 18000 # Node ID 5eed9ceebd64ffdaa8080d82043d813e12f886f2 # Parent ad2506f097d31c97800e938458779310bb971e85 merge: when --tool is specified, disable HGMERGE by setting to empty string HGMERGE has different semantics than ui.merge. HGMERGE should hold the name on an executable in your path, or an absolute tool path. As such, it's not safe to simply copy the user's specified --tool value into HGMERGE. Instead, we disable HGMERGE by setting it to an empty string. diff -r ad2506f097d3 -r 5eed9ceebd64 mercurial/commands.py --- a/mercurial/commands.py Mon Oct 18 14:10:36 2010 +0900 +++ b/mercurial/commands.py Mon Oct 18 23:20:14 2010 -0500 @@ -2589,7 +2589,7 @@ t = opts.get('tool') if t: if 'HGMERGE' in os.environ: - os.environ['HGMERGE'] = t + os.environ['HGMERGE'] = '' ui.setconfig('ui', 'merge', t) if not node: @@ -2982,7 +2982,7 @@ t = opts.get('tool') if t: if 'HGMERGE' in os.environ: - os.environ['HGMERGE'] = t + os.environ['HGMERGE'] = '' ui.setconfig('ui', 'merge', t) ms = mergemod.mergestate(repo)