Steve Borho  committed 48585a7

hglib: only check for each tool once

  • Participants
  • Parent commits a08b73f
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/

     'returns the configured merge tools and the internal ones'
     if values == None:
         values = []
+    seen = values[:]
     for key, value in ui.configitems('merge-tools'):
         t = key.split('.')[0]
-        if t not in values:
+        if t not in seen:
+            seen.append(t)
             # Ensure the tool is installed
             if filemerge._findtool(ui, t):