mercurial/filemerge.py
changeset 26730 a1e43e85d294
parent 26614 ef1eb6df7071
child 26851 859f453e8b4e
--- 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: