[PATCH 1 of 8 STABLE] debugrevlog: document -d and --dir in short help

timeless timeless at mozdev.org
Mon Feb 1 07:29:12 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1454273414 0
#      Sun Jan 31 20:50:14 2016 +0000
# Branch stable
# Node ID 8bb0dcb854c1bab3a92842af9010e5b4e4c8dc36
# Parent  88609cfa37455815e4d6acd45e2a8893720c065b
debugrevlog: document -d and --dir in short help

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3181,7 +3181,7 @@
 
 @command('debugrevlog', debugrevlogopts +
     [('d', 'dump', False, _('dump index data'))],
-    _('-c|-m|FILE'),
+    _('[-d] (-c|-m|[--dir] FILE)'),
     optionalrepo=True)
 def debugrevlog(ui, repo, file_=None, **opts):
     """show data and statistics about a revlog"""
diff --git a/tests/test-debugcommands.t b/tests/test-debugcommands.t
--- a/tests/test-debugcommands.t
+++ b/tests/test-debugcommands.t
@@ -5,6 +5,21 @@
 
   $ hg init debugrevlog
   $ cd debugrevlog
+  $ hg debugrevlog --nosuchthing
+  hg debugrevlog: option --nosuchthing not recognized
+  hg debugrevlog [-d] (-c|-m|[--dir] FILE)
+  
+  show data and statistics about a revlog
+  
+  options:
+  
+   -c --changelog open changelog
+   -m --manifest  open manifest
+      --dir       open directory manifest
+   -d --dump      dump index data
+  
+  (use "hg debugrevlog -h" to show more help)
+  [255]
   $ echo a > a
   $ hg ci -Am adda
   adding a


More information about the Mercurial-devel mailing list