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