# HG changeset patch # User timeless # Date 1448916307 0 # Node ID ac27b1b3be857271af03f21e6d5e69611aa30a3a # Parent 7625f6387fc4984a005741acea8b9166421b9dd9 help: make help deprecated mention the extension before this, you got an empty list of extensions, which was unhelpful diff -r 7625f6387fc4 -r ac27b1b3be85 mercurial/help.py --- a/mercurial/help.py Mon Nov 30 20:44:22 2015 +0000 +++ b/mercurial/help.py Mon Nov 30 20:45:07 2015 +0000 @@ -474,7 +474,8 @@ doc = gettext(mod.__doc__).splitlines()[0] rst = listexts(_("'%s' is provided by the following " - "extension:") % cmd, {ext: doc}, indent=4) + "extension:") % cmd, {ext: doc}, indent=4, + showdeprecated=True) rst.append('\n') rst.append(_('(use "hg help extensions" for information on enabling ' 'extensions)\n')) diff -r 7625f6387fc4 -r ac27b1b3be85 tests/test-extension.t --- a/tests/test-extension.t Mon Nov 30 20:44:22 2015 +0000 +++ b/tests/test-extension.t Mon Nov 30 20:45:07 2015 +0000 @@ -367,6 +367,15 @@ $ echo 'debugextension = !' >> $HGRCPATH +Asking for help about a deprecated extension should do something useful: + + $ hg help glog + 'glog' is provided by the following extension: + + graphlog command to view revision graphs from a shell (DEPRECATED) + + (use "hg help extensions" for information on enabling extensions) + Extension module help vs command help: $ echo 'extdiff =' >> $HGRCPATH