debugindex: rename to debugindex debug-revlog-index
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 30 May 2022 11:30:48 +0200
changeset 49249 db19f6be0442
parent 49248 63fd0282ad40
child 49250 61cf3d39fd9e
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.
mercurial/debugcommands.py
tests/test-completion.t
tests/test-help.t
--- 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)
 
--- 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
--- 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