changeset 50971:1e2be2c9a74d

debugp2copies: migrate `opts` to native kwargs
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 21 Aug 2023 17:29:56 -0400
parents 91c32fccd282
children 206d7fad2a1c
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon Aug 21 17:29:05 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:29:56 2023 -0400
@@ -2840,8 +2840,7 @@
 def debugp2copies(ui, repo, **opts):
     """dump copy information compared to p2"""
 
-    opts = pycompat.byteskwargs(opts)
-    ctx = scmutil.revsingle(repo, opts.get(b'rev'), default=None)
+    ctx = scmutil.revsingle(repo, opts.get('rev'), default=None)
     for dst, src in ctx.p2copies().items():
         ui.write(b'%s -> %s\n' % (src, dst))