# HG changeset patch # User Pierre-Yves David # Date 1653903048 -7200 # Node ID db19f6be0442cf9a148814882548182e495a5aab # Parent 63fd0282ad4001a6a64c97697bae0a0530663c35 debugindex: rename to debugindex debug-revlog-index The command dump some content of the revlog index and omit a lot of information. I am going to make it display the missing information. For clarity, we rename the command to explicitly mention revlog. diff -r 63fd0282ad40 -r db19f6be0442 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Mon May 30 16:18:12 2022 +0200 +++ b/mercurial/debugcommands.py Mon May 30 11:30:48 2022 +0200 @@ -1865,12 +1865,12 @@ @command( - b'debugindex', + b'debug-revlog-index|debugindex', cmdutil.debugrevlogopts + cmdutil.formatteropts, _(b'-c|-m|FILE'), ) def debugindex(ui, repo, file_=None, **opts): - """dump index data for a storage primitive""" + """dump index data for a revlog""" opts = pycompat.byteskwargs(opts) store = cmdutil.openstorage(repo, b'debugindex', file_, opts) diff -r 63fd0282ad40 -r db19f6be0442 tests/test-completion.t --- a/tests/test-completion.t Mon May 30 16:18:12 2022 +0200 +++ b/tests/test-completion.t Mon May 30 11:30:48 2022 +0200 @@ -76,6 +76,7 @@ $ hg debugcomplete debug debug-delta-find debug-repair-issue6528 + debug-revlog-index debugancestor debugantivirusrunning debugapplystreamclonebundle @@ -104,7 +105,6 @@ debugfsinfo debuggetbundle debugignore - debugindex debugindexdot debugindexstats debuginstall @@ -270,6 +270,7 @@ copy: forget, after, at-rev, force, include, exclude, dry-run debug-delta-find: changelog, manifest, dir, template debug-repair-issue6528: to-report, from-report, paranoid, dry-run + debug-revlog-index: changelog, manifest, dir, template debugancestor: debugantivirusrunning: debugapplystreamclonebundle: @@ -297,7 +298,6 @@ debugfsinfo: debuggetbundle: head, common, type debugignore: - debugindex: changelog, manifest, dir, template debugindexdot: changelog, manifest, dir debugindexstats: debuginstall: template diff -r 63fd0282ad40 -r db19f6be0442 tests/test-help.t --- a/tests/test-help.t Mon May 30 16:18:12 2022 +0200 +++ b/tests/test-help.t Mon May 30 11:30:48 2022 +0200 @@ -983,6 +983,8 @@ debug-repair-issue6528 find affected revisions and repair them. See issue6528 for more details. + debug-revlog-index + dump index data for a revlog debugancestor find the ancestor revision of two revisions in a given index debugantivirusrunning @@ -1031,7 +1033,6 @@ retrieves a bundle from a repo debugignore display the combined ignore pattern and information about ignored files - debugindex dump index data for a storage primitive debugindexdot dump an index DAG as a graphviz dot file debugindexstats