Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 40295:fa88170c10bb
help: adding a proper declaration for shortlist/basic commands (API)
We previously used the '^' prefix to indicate that a command
should be shown on the short list (shown for just "hg"), but
that's a horrible hack, so I'm removing it.
Differential Revision: https://phab.mercurial-scm.org/D5069
author | Rodrigo Damazio <rdamazio@google.com> |
---|---|
date | Fri, 12 Oct 2018 18:49:11 +0200 |
parents | 57500950f40e |
children | 943248e47864 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Oct 12 18:06:32 2018 +0200 +++ b/mercurial/cmdutil.py Fri Oct 12 18:49:11 2018 +0200 @@ -185,7 +185,7 @@ return newlyaddedandmodifiedfiles def parsealiases(cmd): - return cmd.lstrip("^").split("|") + return cmd.split("|") def setupwrapcolorwrite(ui): # wrap ui.write so diff output can be labeled/colorized @@ -673,7 +673,7 @@ debugchoice = {} if cmd in table: - # short-circuit exact matches, "log" alias beats "^log|history" + # short-circuit exact matches, "log" alias beats "log|history" keys = [cmd] else: keys = table.keys()