--- a/mercurial/debugcommands.py Mon Aug 21 17:34:13 2023 -0400
+++ b/mercurial/debugcommands.py Mon Aug 21 17:35:13 2023 -0400
@@ -3210,10 +3210,11 @@
)
def debugrevlog(ui, repo, file_=None, **opts):
"""show data and statistics about a revlog"""
- opts = pycompat.byteskwargs(opts)
- r = cmdutil.openrevlog(repo, b'debugrevlog', file_, opts)
-
- if opts.get(b"dump"):
+ r = cmdutil.openrevlog(
+ repo, b'debugrevlog', file_, pycompat.byteskwargs(opts)
+ )
+
+ if opts.get("dump"):
revlog_debug.dump(ui, r)
else:
revlog_debug.debug_revlog(ui, r)