Submitter | timeless@mozdev.org |
---|---|
Date | Feb. 1, 2016, 7:29 a.m. |
Message ID | <8bb0dcb854c1bab3a928.1454311752@waste.org> |
Download | mbox | patch |
Permalink | /patch/12914/ |
State | Changes Requested |
Headers | show |
Comments
On 02/01/2016 07:29 AM, timeless wrote: > # HG changeset patch > # User timeless <timeless@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 That 9 long series to a debug command probably do not pass the benefit/churn of the freeze for today release. I'll review the rest and let Matt decide.
Patch
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