Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/help.py @ 22114:3ba1d7ca3dfd
help: normalize topic and extension verbose hints
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 03:25:51 -0500 |
parents | 2d2cb5e50095 |
children | 8465625f7364 |
comparison
equal
deleted
inserted
replaced
22113:2d2cb5e50095 | 22114:3ba1d7ca3dfd |
---|---|
403 rst.append(" %s\n" % _("(no help text available)")) | 403 rst.append(" %s\n" % _("(no help text available)")) |
404 if callable(doc): | 404 if callable(doc): |
405 rst += [" %s\n" % l for l in doc().splitlines()] | 405 rst += [" %s\n" % l for l in doc().splitlines()] |
406 | 406 |
407 if not ui.verbose: | 407 if not ui.verbose: |
408 omitted = (_('use "hg help -v %s" to show more complete help') % | 408 omitted = _('(some details hidden, use --verbose' |
409 name) | 409 ' to show complete help)') |
410 indicateomitted(rst, omitted) | 410 indicateomitted(rst, omitted) |
411 | 411 |
412 try: | 412 try: |
413 cmdutil.findcmd(name, commands.table) | 413 cmdutil.findcmd(name, commands.table) |
414 rst.append(_('\nuse "hg help -c %s" to see help for ' | 414 rst.append(_('\nuse "hg help -c %s" to see help for ' |
435 if tail: | 435 if tail: |
436 rst.extend(tail.splitlines(True)) | 436 rst.extend(tail.splitlines(True)) |
437 rst.append('\n') | 437 rst.append('\n') |
438 | 438 |
439 if not ui.verbose: | 439 if not ui.verbose: |
440 omitted = (_('use "hg help -v %s" to show more complete help') % | 440 omitted = _('(some details hidden, use --verbose' |
441 name) | 441 ' to show complete help)') |
442 indicateomitted(rst, omitted) | 442 indicateomitted(rst, omitted) |
443 | 443 |
444 if mod: | 444 if mod: |
445 try: | 445 try: |
446 ct = mod.cmdtable | 446 ct = mod.cmdtable |