equal
deleted
inserted
replaced
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) |