Mercurial > hg
diff mercurial/cmdutil.py @ 21966:be94ed4baa5d stable
log: do not use exact matcher for --patch --follow without file (issue4319)
e2530d4a47c1 is valid only if file argument is specified. If no pattern
specified, it can simply fall back to the original matcher.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 01 Aug 2014 21:36:56 +0900 |
parents | 0483ff40e326 |
children | 739095270f48 ac7a3b2a85e3 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Jul 31 16:32:12 2014 -0500 +++ b/mercurial/cmdutil.py Fri Aug 01 21:36:56 2014 +0900 @@ -1629,7 +1629,7 @@ filematcher = None if opts.get('patch') or opts.get('stat'): - if follow: + if follow and not match.always(): # _makelogfilematcher expects its files argument to be relative to # the repo root, so use match.files(), not pats. filematcher = _makelogfilematcher(repo, match.files(), followfirst)