Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 9839:0a3fc37261ab
help: don't show extension list on extension help
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 12 Nov 2009 13:43:36 +0100 |
parents | 9ebad1b93456 |
children | 24bc6e414610 |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Nov 12 12:05:43 2009 +0100 +++ b/mercurial/commands.py Thu Nov 12 13:43:36 2009 +0100 @@ -1551,12 +1551,6 @@ else: ui.write(' %-*s %s\n' % (m, f, util.wrap(h[f], m + 4))) - if name != 'shortlist': - exts, maxlength = extensions.enabled() - text = help.listexts(_('enabled extensions:'), exts, maxlength) - if text: - ui.write("\n%s\n" % minirst.format(text, textwidth)) - if not ui.quiet: addglobalopts(True) @@ -1627,6 +1621,11 @@ header = _('list of commands:\n\n') helplist(header) + if name != 'shortlist': + exts, maxlength = extensions.enabled() + text = help.listexts(_('enabled extensions:'), exts, maxlength) + if text: + ui.write("\n%s\n" % minirst.format(text, textwidth)) # list all option lists opt_output = []