# HG changeset patch # User Matt Harbison # Date 2023-08-21 21:34:13 # Node ID 7ef74fc79900ca26ab6bf0cbcd6eb005c4543375 # Parent a0fcdcc536186811ce1c8f69a324084909a59e28 debugrename: migrate `opts` to native kwargs diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -3183,9 +3183,8 @@ def debugrebuildfncache(ui, repo, **opts 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())