# HG changeset patch # User Matt Mackall # Date 2014-08-12 08:25:51 # Node ID 3ba1d7ca3dfdc2b1736e47829cb47edd6ca9f74c # Parent 2d2cb5e50095339e914090b99952538cafe2cace help: normalize topic and extension verbose hints diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -405,8 +405,8 @@ def help_(ui, name, unknowncmd=False, fu rst += [" %s\n" % l for l in doc().splitlines()] if not ui.verbose: - omitted = (_('use "hg help -v %s" to show more complete help') % - name) + omitted = _('(some details hidden, use --verbose' + ' to show complete help)') indicateomitted(rst, omitted) try: @@ -437,8 +437,8 @@ def help_(ui, name, unknowncmd=False, fu rst.append('\n') if not ui.verbose: - omitted = (_('use "hg help -v %s" to show more complete help') % - name) + omitted = _('(some details hidden, use --verbose' + ' to show complete help)') indicateomitted(rst, omitted) if mod: diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -1030,7 +1030,7 @@ Test omit indicating for help This paragraph is never omitted, too (for extension) - use "hg help -v addverboseitems" to show more complete help + (some details hidden, use --verbose to show complete help) no commands defined $ hg help -v addverboseitems @@ -1051,7 +1051,7 @@ Test omit indicating for help This paragraph is never omitted, too (for topic) - use "hg help -v topic-containing-verbose" to show more complete help + (some details hidden, use --verbose to show complete help) $ hg help -v topic-containing-verbose This is the topic to test omit indicating. """"""""""""""""""""""""""""""""""""""""""