debugrevlog: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:35:13 -0400
changeset 50964 8f25df137282
parent 50963 7ef74fc79900
child 50965 56a966bc6b1a
debugrevlog: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- 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)