[PATCH] dispatch: minor refactoring
Henri Wiechers
hwiechers at gmail.com
Fri Nov 13 08:42:40 CST 2009
# HG changeset patch
# User Henri Wiechers <hwiechers at gmail.com>
# Date 1258123107 -7200
# Node ID 925a340d6a16313b27b3659dfcc7346f38618b14
# Parent a033929bd34e34f6ee3c03c25f35ff3414bb0cc1
dispatch: minor refactoring
Renamed local variable i to entry in _dispatch.
diff -r a033929bd34e -r 925a340d6a16 mercurial/dispatch.py
--- a/mercurial/dispatch.py Fri Nov 13 06:36:26 2009 +0100
+++ b/mercurial/dispatch.py Fri Nov 13 16:38:27 2009 +0200
@@ -240,14 +240,14 @@
if args:
cmd, args = args[0], args[1:]
- aliases, i = cmdutil.findcmd(cmd, commands.table,
+ aliases, entry = cmdutil.findcmd(cmd, commands.table,
ui.config("ui", "strict"))
cmd = aliases[0]
- args = aliasargs(i[0]) + args
+ args = aliasargs(entry[0]) + args
defaults = ui.config("defaults", cmd)
if defaults:
args = map(util.expandpath, shlex.split(defaults)) + args
- c = list(i[1])
+ c = list(entry[1])
else:
cmd = None
c = []
@@ -267,7 +267,7 @@
options[n] = cmdoptions[n]
del cmdoptions[n]
- return (cmd, cmd and i[0] or None, args, options, cmdoptions)
+ return (cmd, cmd and entry[0] or None, args, options, cmdoptions)
def _parseconfig(ui, config):
"""parse the --config options from the command line"""
More information about the Mercurial-devel
mailing list