mercurial/debugcommands.py
changeset 32363 a275186b989a
parent 32337 46ba2cdda476
child 32367 a9c71d578a1c
equal deleted inserted replaced
32362:7b3c27af90c2 32363:a275186b989a
  2166 @command('debugwalk', commands.walkopts, _('[OPTION]... [FILE]...'),
  2166 @command('debugwalk', commands.walkopts, _('[OPTION]... [FILE]...'),
  2167          inferrepo=True)
  2167          inferrepo=True)
  2168 def debugwalk(ui, repo, *pats, **opts):
  2168 def debugwalk(ui, repo, *pats, **opts):
  2169     """show how files match on given patterns"""
  2169     """show how files match on given patterns"""
  2170     m = scmutil.match(repo[None], pats, opts)
  2170     m = scmutil.match(repo[None], pats, opts)
  2171     items = list(repo.walk(m))
  2171     items = list(repo[None].walk(m))
  2172     if not items:
  2172     if not items:
  2173         return
  2173         return
  2174     f = lambda fn: fn
  2174     f = lambda fn: fn
  2175     if ui.configbool('ui', 'slash') and pycompat.ossep != '/':
  2175     if ui.configbool('ui', 'slash') and pycompat.ossep != '/':
  2176         f = lambda fn: util.normpath(fn)
  2176         f = lambda fn: util.normpath(fn)