changeset 50948:f7c35a645c2e

debugdeltafind: migrate `opts` to native kwargs
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 21 Aug 2023 16:58:23 -0400
parents 32fe4af9971d
children 8e5083590cfe
files mercurial/debugcommands.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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':