changeset 50971:e032f47f5166

debugwalk: migrate `opts` to native kwargs
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 21 Aug 2023 17:49:57 -0400
parents f04568add4ee
children a4d21089bec7
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:47:52 2023 -0400
+++ b/mercurial/debugcommands.py	Mon Aug 21 17:49:57 2023 -0400
@@ -4166,8 +4166,7 @@
 )
 def debugwalk(ui, repo, *pats, **opts):
     """show how files match on given patterns"""
-    opts = pycompat.byteskwargs(opts)
-    m = scmutil.match(repo[None], pats, opts)
+    m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts))
     if ui.verbose:
         ui.writenoi18n(b'* matcher:\n', stringutil.prettyrepr(m), b'\n')
     items = list(repo[None].walk(m))