--- a/mercurial/filemerge.py Tue Oct 13 23:04:53 2015 -0700
+++ b/mercurial/filemerge.py Wed Oct 14 12:57:33 2015 -0400
@@ -120,12 +120,15 @@
# then merge tools
tools = {}
+ disabled = set()
for k, v in ui.configitems("merge-tools"):
t = k.split('.')[0]
if t not in tools:
tools[t] = int(_toolstr(ui, t, "priority", "0"))
+ if _toolbool(ui, t, "disabled", False):
+ disabled.add(t)
names = tools.keys()
- tools = sorted([(-p, t) for t, p in tools.items()])
+ tools = sorted([(-p, t) for t, p in tools.items() if t not in disabled])
uimerge = ui.config("ui", "merge")
if uimerge:
if uimerge not in names: