# HG changeset patch # User Pierre-Yves David # Date 2022-05-30 09:30:48 # 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 --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1865,12 +1865,12 @@ def debugignore(ui, repo, *files, **opts @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 --git a/tests/test-completion.t b/tests/test-completion.t --- a/tests/test-completion.t +++ b/tests/test-completion.t @@ -76,6 +76,7 @@ Show debug commands if there are no othe $ hg debugcomplete debug debug-delta-find debug-repair-issue6528 + debug-revlog-index debugancestor debugantivirusrunning debugapplystreamclonebundle @@ -104,7 +105,6 @@ Show debug commands if there are no othe debugfsinfo debuggetbundle debugignore - debugindex debugindexdot debugindexstats debuginstall @@ -270,6 +270,7 @@ Show all commands + options 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 @@ Show all commands + options debugfsinfo: debuggetbundle: head, common, type debugignore: - debugindex: changelog, manifest, dir, template debugindexdot: changelog, manifest, dir debugindexstats: debuginstall: template diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -983,6 +983,8 @@ Test list of internal help commands 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 @@ Test list of internal help commands 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