Mercurial > public > mercurial-scm > hg
comparison mercurial/help.py @ 27152:ac27b1b3be85
help: make help deprecated mention the extension
before this, you got an empty list of extensions, which was unhelpful
author | timeless <timeless@mozdev.org> |
---|---|
date | Mon, 30 Nov 2015 20:45:07 +0000 |
parents | 7625f6387fc4 |
children | 0fe93498ef07 |
comparison
equal
deleted
inserted
replaced
27151:7625f6387fc4 | 27152:ac27b1b3be85 |
---|---|
472 cmd, ext, mod = extensions.disabledcmd(ui, name, | 472 cmd, ext, mod = extensions.disabledcmd(ui, name, |
473 ui.configbool('ui', 'strict')) | 473 ui.configbool('ui', 'strict')) |
474 doc = gettext(mod.__doc__).splitlines()[0] | 474 doc = gettext(mod.__doc__).splitlines()[0] |
475 | 475 |
476 rst = listexts(_("'%s' is provided by the following " | 476 rst = listexts(_("'%s' is provided by the following " |
477 "extension:") % cmd, {ext: doc}, indent=4) | 477 "extension:") % cmd, {ext: doc}, indent=4, |
478 showdeprecated=True) | |
478 rst.append('\n') | 479 rst.append('\n') |
479 rst.append(_('(use "hg help extensions" for information on enabling ' | 480 rst.append(_('(use "hg help extensions" for information on enabling ' |
480 'extensions)\n')) | 481 'extensions)\n')) |
481 return rst | 482 return rst |
482 | 483 |