Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 38960:d99468d2b09a
grep: search all commits in allfiles mode
All the commits are added to the 'wanted' set when allfiles mode is enabled.
Differential Revision: https://phab.mercurial-scm.org/D4157
author | Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com> |
---|---|
date | Wed, 08 Aug 2018 19:29:02 +0530 |
parents | f3f109971359 |
children | cf68e2649e0a |
comparison
equal
deleted
inserted
replaced
38959:0d032756e9bf | 38960:d99468d2b09a |
---|---|
1897 # First step is to fill wanted, the set of revisions that we want to yield. | 1897 # First step is to fill wanted, the set of revisions that we want to yield. |
1898 # When it does not induce extra cost, we also fill fncache for revisions in | 1898 # When it does not induce extra cost, we also fill fncache for revisions in |
1899 # wanted: a cache of filenames that were changed (ctx.files()) and that | 1899 # wanted: a cache of filenames that were changed (ctx.files()) and that |
1900 # match the file filtering conditions. | 1900 # match the file filtering conditions. |
1901 | 1901 |
1902 if match.always(): | 1902 if match.always() or allfiles: |
1903 # No files, no patterns. Display all revs. | 1903 # No files, no patterns. Display all revs. |
1904 wanted = revs | 1904 wanted = revs |
1905 elif not slowpath: | 1905 elif not slowpath: |
1906 # We only have to read through the filelog to find wanted revisions | 1906 # We only have to read through the filelog to find wanted revisions |
1907 | 1907 |