Mercurial > hg > mercurial-source
changeset 9994:931d2c757627
Merge with stable
author | Henrik Stuart <hg@hstuart.dk> |
---|---|
date | Thu, 03 Dec 2009 06:35:39 +0100 |
parents | e97dd3a8e8d7 (current diff) 8bce1e0d2801 (diff) |
children | c08583734fc5 6950dd804e69 |
files | mercurial/dispatch.py |
diffstat | 3 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -196,7 +196,12 @@ cmd = args.pop(0) try: - self.fn, self.opts, self.help = cmdutil.findcmd(cmd, cmdtable, False)[1] + tableentry = cmdutil.findcmd(cmd, cmdtable, False)[1] + if len(tableentry) > 2: + self.fn, self.opts, self.help = tableentry + else: + self.fn, self.opts = tableentry + self.args = aliasargs(self.fn) + args if cmd not in commands.norepo.split(' '): self.norepo = False
--- a/tests/test-alias +++ b/tests/test-alias @@ -12,6 +12,7 @@ lognull = log -r null shortlog = log --template '{rev} {node|short} | {date|isodate}\n' dln = lognull --debug +nousage = rollback [defaults] mylog = -q @@ -35,6 +36,10 @@ hg nodef cd alias + +echo '% no usage' +hg nousage + echo foo > foo hg ci -Amfoo