contrib/perf.py
changeset 52163 7346f93be7a4
parent 52000 e3952d8cfeb5
child 52636 0e11e532c958
--- a/contrib/perf.py	Wed Jun 19 17:03:13 2024 +0200
+++ b/contrib/perf.py	Wed Jun 19 19:10:49 2024 +0200
@@ -3780,6 +3780,11 @@
 
     rl = cmdutil.openrevlog(repo, b'perfrevlogchunks', file_, opts)
 
+    if rl.uses_rust:
+        raise NotImplementedError(
+            "perfrevlogchunks is not implemented for the Rust revlog"
+        )
+
     # - _chunkraw was renamed to _getsegmentforrevs
     # - _getsegmentforrevs was moved on the inner object
     try:
@@ -3960,6 +3965,10 @@
         raise error.CommandError(b'perfrevlogrevision', b'invalid arguments')
 
     r = cmdutil.openrevlog(repo, b'perfrevlogrevision', file_, opts)
+    if r.uses_rust:
+        raise NotImplementedError(
+            "perfrevlogrevision is not implemented for the Rust revlog"
+        )
 
     # _chunkraw was renamed to _getsegmentforrevs.
     try: