comparison mercurial/debugcommands.py @ 50968: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
comparison
equal deleted inserted replaced
50967:f04568add4ee 50968:e032f47f5166
4164 @command( 4164 @command(
4165 b'debugwalk', cmdutil.walkopts, _(b'[OPTION]... [FILE]...'), inferrepo=True 4165 b'debugwalk', cmdutil.walkopts, _(b'[OPTION]... [FILE]...'), inferrepo=True
4166 ) 4166 )
4167 def debugwalk(ui, repo, *pats, **opts): 4167 def debugwalk(ui, repo, *pats, **opts):
4168 """show how files match on given patterns""" 4168 """show how files match on given patterns"""
4169 opts = pycompat.byteskwargs(opts) 4169 m = scmutil.match(repo[None], pats, pycompat.byteskwargs(opts))
4170 m = scmutil.match(repo[None], pats, opts)
4171 if ui.verbose: 4170 if ui.verbose:
4172 ui.writenoi18n(b'* matcher:\n', stringutil.prettyrepr(m), b'\n') 4171 ui.writenoi18n(b'* matcher:\n', stringutil.prettyrepr(m), b'\n')
4173 items = list(repo[None].walk(m)) 4172 items = list(repo[None].walk(m))
4174 if not items: 4173 if not items:
4175 return 4174 return