equal
deleted
inserted
replaced
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) |