mercurial/debugcommands.py
changeset 50968 e032f47f5166
parent 50967 f04568add4ee
child 50969 a4d21089bec7
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