diff 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
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Aug 08 17:07:27 2018 -0700
+++ b/mercurial/cmdutil.py	Wed Aug 08 19:29:02 2018 +0530
@@ -1899,7 +1899,7 @@
     # wanted: a cache of filenames that were changed (ctx.files()) and that
     # match the file filtering conditions.
 
-    if match.always():
+    if match.always() or allfiles:
         # No files, no patterns.  Display all revs.
         wanted = revs
     elif not slowpath: