Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 7213:b4c035057d34
findcmd: have dispatch look up strict flag
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 22 Oct 2008 17:34:08 -0500 |
parents | 402d317778d3 |
children | e1afb50ec2aa |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Oct 22 17:00:05 2008 -0500 +++ b/mercurial/commands.py Wed Oct 22 17:34:08 2008 -0500 @@ -655,7 +655,7 @@ options = [] otables = [globalopts] if cmd: - aliases, entry = cmdutil.findcmd(ui, cmd, table) + aliases, entry = cmdutil.findcmd(cmd, table, False) otables.append(entry[1]) for t in otables: for o in t: @@ -665,7 +665,7 @@ ui.write("%s\n" % "\n".join(options)) return - ui.write("%s\n" % "\n".join(util.sort(cmdutil.findpossible(ui, cmd, table)))) + ui.write("%s\n" % "\n".join(util.sort(cmdutil.findpossible(cmd, table)))) def debugfsinfo(ui, path = "."): file('.debugfsinfo', 'w').write('') @@ -1272,7 +1272,7 @@ ui.write('\n') try: - aliases, i = cmdutil.findcmd(ui, name, table) + aliases, i = cmdutil.findcmd(name, table, False) except cmdutil.AmbiguousCommand, inst: select = lambda c: c.lstrip('^').startswith(inst.args[0]) helplist(_('list of commands:\n\n'), select)