Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 49264:db19f6be0442
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 30 May 2022 11:30:48 +0200 |
parents | 63fd0282ad40 |
children | 61cf3d39fd9e |
comparison
equal
deleted
inserted
replaced
49263:63fd0282ad40 | 49264:db19f6be0442 |
---|---|
1863 else: | 1863 else: |
1864 ui.write(_(b"%s is not ignored\n") % uipathfn(f)) | 1864 ui.write(_(b"%s is not ignored\n") % uipathfn(f)) |
1865 | 1865 |
1866 | 1866 |
1867 @command( | 1867 @command( |
1868 b'debugindex', | 1868 b'debug-revlog-index|debugindex', |
1869 cmdutil.debugrevlogopts + cmdutil.formatteropts, | 1869 cmdutil.debugrevlogopts + cmdutil.formatteropts, |
1870 _(b'-c|-m|FILE'), | 1870 _(b'-c|-m|FILE'), |
1871 ) | 1871 ) |
1872 def debugindex(ui, repo, file_=None, **opts): | 1872 def debugindex(ui, repo, file_=None, **opts): |
1873 """dump index data for a storage primitive""" | 1873 """dump index data for a revlog""" |
1874 opts = pycompat.byteskwargs(opts) | 1874 opts = pycompat.byteskwargs(opts) |
1875 store = cmdutil.openstorage(repo, b'debugindex', file_, opts) | 1875 store = cmdutil.openstorage(repo, b'debugindex', file_, opts) |
1876 | 1876 |
1877 if ui.debugflag: | 1877 if ui.debugflag: |
1878 shortfn = hex | 1878 shortfn = hex |