Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 7197:f60730693efc
help: show extension commands in short list, separate extension list in help
In 'hg', we now show a short list of commands, including extension commands.
In 'hg help', we show core commands, a list of enabled extensions, and topics.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 21 Oct 2008 11:29:27 +0200 |
parents | 3f6a4f1de43f |
children | 833d1250ce00 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Oct 21 11:05:45 2008 +0200 +++ b/mercurial/commands.py Tue Oct 21 11:29:27 2008 +0200 @@ -1310,7 +1310,8 @@ f = c.split("|", 1)[0] if select and not select(f): continue - if select is None and e[0].__module__ != __name__: + if (not select and name != 'shortlist' and + e[0].__module__ != __name__): continue if name == "shortlist" and not f.startswith("^"): continue @@ -1338,7 +1339,7 @@ ui.write(' %-*s %s\n' % (m, f, h[f])) exts = list(extensions.extensions()) - if exts: + if exts and name != 'shortlist': ui.write(_('\nenabled extensions:\n\n')) maxlength = 0 exthelps = []