changeset 50974:7ef74fc79900

debugrename: migrate `opts` to native kwargs
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 21 Aug 2023 17:34:13 -0400
parents a0fcdcc53618
children 8f25df137282
files mercurial/debugcommands.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon Aug 21 17:33:00 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:34:13 2023 -0400
@@ -3183,9 +3183,8 @@
 def debugrename(ui, repo, *pats, **opts):
     """dump rename information"""
 
-    opts = pycompat.byteskwargs(opts)
-    ctx = scmutil.revsingle(repo, opts.get(b'rev'))
-    m = scmutil.match(ctx, pats, opts)
+    ctx = scmutil.revsingle(repo, opts.get('rev'))
+    m = scmutil.match(ctx, pats, pycompat.byteskwargs(opts))
     for abs in ctx.walk(m):
         fctx = ctx[abs]
         o = fctx.filelog().renamed(fctx.filenode())