Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 10401:6252852b4332
mq: add -Q option to all commands not in norepo
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 08 Feb 2010 10:23:44 +0100 |
parents | 9501cde4c034 |
children | d216fa04e48a |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Feb 07 23:07:58 2010 +0100 +++ b/mercurial/cmdutil.py Mon Feb 08 10:23:44 2010 +0100 @@ -13,6 +13,9 @@ revrangesep = ':' +def parsealiases(cmd): + return cmd.lstrip("^").split("|") + def findpossible(cmd, table, strict=False): """ Return cmd -> (aliases, command table entry) @@ -22,7 +25,7 @@ choice = {} debugchoice = {} for e in table.keys(): - aliases = e.lstrip("^").split("|") + aliases = parsealiases(e) found = None if cmd in aliases: found = cmd