debugdeltachain: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 16:56:38 -0400
changeset 50947 32fe4af9971d
parent 50946 4135e7271b9e
child 50948 f7c35a645c2e
debugdeltachain: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 16:53:16 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 16:56:38 2023 -0400
@@ -799,8 +799,9 @@
 
     The sparse read can be enabled with experimental.sparse-read = True
     """
-    opts = pycompat.byteskwargs(opts)
-    r = cmdutil.openrevlog(repo, b'debugdeltachain', file_, opts)
+    r = cmdutil.openrevlog(
+        repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts)
+    )
     index = r.index
     start = r.start
     length = r.length
@@ -890,7 +891,7 @@
 
         return p1, p2, compsize, uncompsize, deltatype, chain, chain_size
 
-    fm = ui.formatter(b'debugdeltachain', opts)
+    fm = ui.formatter(b'debugdeltachain', pycompat.byteskwargs(opts))
 
     fm.plain(
         b'    rev      p1      p2  chain# chainlen     prev   delta       '