Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 38984:f3f109971359
grep: add MULTIREV support to --allfiles flag
This patch facilitates passing multiple revisions with all-files flag.
It's assumed that if you are passing multiple revisions to --allfiles,
you want hits from all of them.
Differential Revision: https://phab.mercurial-scm.org/D3976
author | Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com> |
---|---|
date | Wed, 25 Jul 2018 12:50:31 +0530 |
parents | 32ece991955c |
children | d99468d2b09a |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Jul 25 10:34:31 2018 +0200 +++ b/mercurial/cmdutil.py Wed Jul 25 12:50:31 2018 +0530 @@ -1889,9 +1889,6 @@ revs = _walkrevs(repo, opts) if not revs: return [] - if allfiles and len(revs) > 1: - raise error.Abort(_("multiple revisions not supported with " - "--all-files")) wanted = set() slowpath = match.anypats() or (not match.always() and opts.get('removed')) fncache = {}