debug_revlog_stats: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 17:47:52 -0400
changeset 50970 f04568add4ee
parent 50969 b28f794fe10a
child 50971 e032f47f5166
debug_revlog_stats: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 17:46:44 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:47:52 2023 -0400
@@ -3917,10 +3917,9 @@
 )
 def debug_revlog_stats(ui, repo, **opts):
     """display statistics about revlogs in the store"""
-    opts = pycompat.byteskwargs(opts)
-    changelog = opts[b"changelog"]
-    manifest = opts[b"manifest"]
-    filelogs = opts[b"filelogs"]
+    changelog = opts["changelog"]
+    manifest = opts["manifest"]
+    filelogs = opts["filelogs"]
 
     if changelog is None and manifest is None and filelogs is None:
         changelog = True
@@ -3928,7 +3927,7 @@
         filelogs = True
 
     repo = repo.unfiltered()
-    fm = ui.formatter(b'debug-revlog-stats', opts)
+    fm = ui.formatter(b'debug-revlog-stats', pycompat.byteskwargs(opts))
     revlog_debug.debug_revlog_stats(repo, fm, changelog, manifest, filelogs)
     fm.end()