diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py index 5807e3a8865e18c4e7adbe687f69938f55ef6be9_bWVyY3VyaWFsL2RlYnVnY29tbWFuZHMucHk=..3551f2a1c9636385339184905438ce754036722a_bWVyY3VyaWFsL2RlYnVnY29tbWFuZHMucHk= 100644 --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -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)) diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs index 5807e3a8865e18c4e7adbe687f69938f55ef6be9_cnVzdC9oZy1jcHl0aG9uL3NyYy9yZXZsb2cucnM=..3551f2a1c9636385339184905438ce754036722a_cnVzdC9oZy1jcHl0aG9uL3NyYy9yZXZsb2cucnM= 100644 --- a/rust/hg-cpython/src/revlog.rs +++ b/rust/hg-cpython/src/revlog.rs @@ -405,11 +405,6 @@ Ok(rust_res) } - /// stats for the index - def stats(&self, *args, **kw) -> PyResult<PyObject> { - self.call_cindex(py, "stats", args, kw) - } - // index_sequence_methods and index_mapping_methods. // // Since we call back through the high level Python API, diff --git a/tests/test-debugcommands.t b/tests/test-debugcommands.t index 5807e3a8865e18c4e7adbe687f69938f55ef6be9_dGVzdHMvdGVzdC1kZWJ1Z2NvbW1hbmRzLnQ=..3551f2a1c9636385339184905438ce754036722a_dGVzdHMvdGVzdC1kZWJ1Z2NvbW1hbmRzLnQ= 100644 --- a/tests/test-debugcommands.t +++ b/tests/test-debugcommands.t @@ -185,5 +185,5 @@ debugdelta chain basic output -#if reporevlogstore pure +#if reporevlogstore pure rust $ hg debugindexstats @@ -189,4 +189,4 @@ $ hg debugindexstats - abort: debugindexstats only works with native code + abort: debugindexstats only works with native C code [255] #endif @@ -191,6 +191,6 @@ [255] #endif -#if reporevlogstore no-pure +#if reporevlogstore no-pure no-rust $ hg debugindexstats node trie capacity: 4 node trie count: 2