mercurial/debugcommands.py
changeset 49249 db19f6be0442
parent 49248 63fd0282ad40
child 49250 61cf3d39fd9e
equal deleted inserted replaced
49248:63fd0282ad40 49249: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