extdiff: reorder an if-else conditional
This brings continue part on top and will help in next patch where we will like
to introduce utility functions for rest of the code.
--- 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"