hgext/extdiff.py
changeset 45409 a28da102fd36
parent 45401 451e13cc6d85
child 45410 2d08dcf8fd9e
--- a/hgext/extdiff.py	Wed Sep 02 23:09:45 2020 +0530
+++ b/hgext/extdiff.py	Wed Sep 02 19:17:31 2020 +0530
@@ -711,6 +711,8 @@
 
 def uisetup(ui):
     for cmd, path in ui.configitems(b'extdiff'):
+        if cmd.startswith(b'opts.') or cmd.startswith(b'gui.'):
+            continue
         path = util.expandpath(path)
         if cmd.startswith(b'cmd.'):
             cmd = cmd[4:]
@@ -723,8 +725,6 @@
             if diffopts:
                 cmdline += b' ' + diffopts
             isgui = ui.configbool(b'extdiff', b'gui.' + cmd)
-        elif cmd.startswith(b'opts.') or cmd.startswith(b'gui.'):
-            continue
         else:
             if path:
                 # case "cmd = path opts"