Mercurial > public > mercurial-scm > hg
diff tests/test-grep.t @ 38946: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 | aabc01da9834 |
children | d99468d2b09a |
line wrap: on
line diff
--- a/tests/test-grep.t Wed Jul 25 10:34:31 2018 +0200 +++ b/tests/test-grep.t Wed Jul 25 12:50:31 2018 +0530 @@ -491,3 +491,13 @@ ] $ cd .. + +test -rMULTIREV with --all-files + + $ cd sng + $ hg rm um + $ hg commit -m "deletes um" + $ hg grep -r "0:2" "unmod" --all-files + um:0:unmod + um:1:unmod + $ cd ..