--- a/mercurial/commands.py Wed Jan 20 20:24:20 2010 +0200
+++ b/mercurial/commands.py Tue May 10 13:19:05 2011 +0200
@@ -2223,6 +2223,18 @@
addglobalopts(False)
+ # check if this command shadows a non-trivial (multi-line)
+ # extension help text
+ try:
+ mod = extensions.find(name)
+ doc = gettext(mod.__doc__) or ''
+ if '\n' in doc.strip():
+ msg = _('use "hg help -e %s" to show help for '
+ 'the %s extension') % (name, name)
+ ui.write('\n%s\n' % msg)
+ except KeyError:
+ pass
+
def helplist(header, select=None):
h = {}
cmds = {}