Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 38262:7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
And drop "egrep -v". This matches the behavior of "hg debugrevspec".
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Jun 2018 11:53:56 +0900 |
parents | f3033692ccef |
children | dbf31732ef64 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sun Jun 10 11:50:09 2018 +0900 +++ b/mercurial/debugcommands.py Sun Jun 10 11:53:56 2018 +0900 @@ -2542,7 +2542,8 @@ """show how files match on given patterns""" opts = pycompat.byteskwargs(opts) m = scmutil.match(repo[None], pats, opts) - ui.write(('matcher: %r\n' % m)) + if ui.verbose: + ui.write(('matcher: %r\n' % m)) items = list(repo[None].walk(m)) if not items: return