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