equal
deleted
inserted
replaced
2123 @command('debugwalk', cmdutil.walkopts, _('[OPTION]... [FILE]...'), |
2123 @command('debugwalk', cmdutil.walkopts, _('[OPTION]... [FILE]...'), |
2124 inferrepo=True) |
2124 inferrepo=True) |
2125 def debugwalk(ui, repo, *pats, **opts): |
2125 def debugwalk(ui, repo, *pats, **opts): |
2126 """show how files match on given patterns""" |
2126 """show how files match on given patterns""" |
2127 m = scmutil.match(repo[None], pats, opts) |
2127 m = scmutil.match(repo[None], pats, opts) |
|
2128 ui.write(('matcher: %r\n' % m)) |
2128 items = list(repo[None].walk(m)) |
2129 items = list(repo[None].walk(m)) |
2129 if not items: |
2130 if not items: |
2130 return |
2131 return |
2131 f = lambda fn: fn |
2132 f = lambda fn: fn |
2132 if ui.configbool('ui', 'slash') and pycompat.ossep != '/': |
2133 if ui.configbool('ui', 'slash') and pycompat.ossep != '/': |