Mercurial > hg
changeset 9875:d6a95c5f6ff9
dispatch: minor refactoring
Renamed local variable i to entry in _dispatch.
author | Henri Wiechers <hwiechers@gmail.com> |
---|---|
date | Fri, 13 Nov 2009 16:38:27 +0200 |
parents | 57949bfec718 |
children | 6e8a16dd3e30 |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Mon Nov 16 14:50:30 2009 -0600 +++ 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"""