mercurial/debugcommands.py
changeset 51229 3551f2a1c963
parent 51073 786b6225793a
child 51374 39f349391898
equal deleted inserted replaced
51228:5807e3a8865e 51229:3551f2a1c963
  1858 def debugindexstats(ui, repo):
  1858 def debugindexstats(ui, repo):
  1859     """show stats related to the changelog index"""
  1859     """show stats related to the changelog index"""
  1860     repo.changelog.shortest(repo.nullid, 1)
  1860     repo.changelog.shortest(repo.nullid, 1)
  1861     index = repo.changelog.index
  1861     index = repo.changelog.index
  1862     if not hasattr(index, 'stats'):
  1862     if not hasattr(index, 'stats'):
  1863         raise error.Abort(_(b'debugindexstats only works with native code'))
  1863         raise error.Abort(_(b'debugindexstats only works with native C code'))
  1864     for k, v in sorted(index.stats().items()):
  1864     for k, v in sorted(index.stats().items()):
  1865         ui.write(b'%s: %d\n' % (k, v))
  1865         ui.write(b'%s: %d\n' % (k, v))
  1866 
  1866 
  1867 
  1867 
  1868 @command(b'debuginstall', [] + cmdutil.formatteropts, b'', norepo=True)
  1868 @command(b'debuginstall', [] + cmdutil.formatteropts, b'', norepo=True)