Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 32402:a275186b989a
debugcommands: use repo[None].walk instead of repo.walk
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 18 May 2017 18:01:01 -0400 |
parents | 46ba2cdda476 |
children | a9c71d578a1c |
comparison
equal
deleted
inserted
replaced
32401:7b3c27af90c2 | 32402: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) |