debugdeltafind: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 16:58:23 -0400
changeset 50948 f7c35a645c2e
parent 50947 32fe4af9971d
child 50949 8e5083590cfe
debugdeltafind: migrate `opts` to native kwargs
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Mon Aug 21 16:56:38 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 16:58:23 2023 -0400
@@ -1026,7 +1026,6 @@
 
     note: the process is initiated from a full text of the revision to store.
     """
-    opts = pycompat.byteskwargs(opts)
     if arg_2 is None:
         file_ = None
         rev = arg_1
@@ -1036,7 +1035,9 @@
 
     rev = int(rev)
 
-    revlog = cmdutil.openrevlog(repo, b'debugdeltachain', file_, opts)
+    revlog = cmdutil.openrevlog(
+        repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts)
+    )
     p1r, p2r = revlog.parentrevs(rev)
 
     if source == b'full':