diff mercurial/debugcommands.py @ 51253:3551f2a1c963

debugindexstats: handle the lack of Rust support better We don't have any stats in the Rust index. Currently it is not known which stats would be interesting to get, so if they end up being important, we can add them later.
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 31 Oct 2023 18:09:43 +0100
parents 786b6225793a
children 39f349391898
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Oct 31 17:36:59 2023 +0100
+++ b/mercurial/debugcommands.py	Tue Oct 31 18:09:43 2023 +0100
@@ -1860,7 +1860,7 @@
     repo.changelog.shortest(repo.nullid, 1)
     index = repo.changelog.index
     if not hasattr(index, 'stats'):
-        raise error.Abort(_(b'debugindexstats only works with native code'))
+        raise error.Abort(_(b'debugindexstats only works with native C code'))
     for k, v in sorted(index.stats().items()):
         ui.write(b'%s: %d\n' % (k, v))