Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/help.py @ 22112:d968f4741a22
help: normalize extension shadow hint
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 03:12:24 -0500 |
parents | aa5e256839d5 |
children | 2d2cb5e50095 |
comparison
equal
deleted
inserted
replaced
22111:aa5e256839d5 | 22112:d968f4741a22 |
---|---|
274 # extension help text | 274 # extension help text |
275 try: | 275 try: |
276 mod = extensions.find(name) | 276 mod = extensions.find(name) |
277 doc = gettext(mod.__doc__) or '' | 277 doc = gettext(mod.__doc__) or '' |
278 if '\n' in doc.strip(): | 278 if '\n' in doc.strip(): |
279 msg = _('use "hg help -e %s" to show help for ' | 279 msg = _('(use "hg help -e %s" to show help for ' |
280 'the %s extension') % (name, name) | 280 'the %s extension)') % (name, name) |
281 rst.append('\n%s\n' % msg) | 281 rst.append('\n%s\n' % msg) |
282 except KeyError: | 282 except KeyError: |
283 pass | 283 pass |
284 | 284 |
285 # options | 285 # options |