help: normalize topic and extension verbose hints
authorMatt Mackall <mpm@selenic.com>
Tue, 12 Aug 2014 03:25:51 -0500
changeset 22114 3ba1d7ca3dfd
parent 22113 2d2cb5e50095
child 22115 8465625f7364
help: normalize topic and extension verbose hints
mercurial/help.py
tests/test-help.t
--- a/mercurial/help.py	Tue Aug 12 03:18:50 2014 -0500
+++ b/mercurial/help.py	Tue Aug 12 03:25:51 2014 -0500
@@ -405,8 +405,8 @@
             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 @@
             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:
--- a/tests/test-help.t	Tue Aug 12 03:18:50 2014 -0500
+++ b/tests/test-help.t	Tue Aug 12 03:25:51 2014 -0500
@@ -1030,7 +1030,7 @@
   
   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 @@
   
       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.
   """"""""""""""""""""""""""""""""""""""""""