##// END OF EJS Templates
grep: add option for logcmdutil.makewalker() to not filter revs by file pats...
Yuya Nishihara -
r46224:9fead7d9 default
parent child Browse files
Show More
@@ -711,6 +711,10 b' class walkopts(object):'
711 711 # include revisions where files were removed
712 712 force_changelog_traversal = attr.ib(default=False) # type: bool
713 713
714 # filter revisions by file patterns, which should be disabled only if
715 # you want to include revisions where files were unmodified
716 filter_revisions_by_pats = attr.ib(default=True) # type: bool
717
714 718 # sort revisions prior to traversal: 'desc', 'topo', or None
715 719 sort_revisions = attr.ib(default=None) # type: Optional[bytes]
716 720
@@ -902,7 +906,7 b' def _makerevset(repo, wopts, slowpath):'
902 906 b'user': wopts.users,
903 907 }
904 908
905 if slowpath:
909 if wopts.filter_revisions_by_pats and slowpath:
906 910 # See walkchangerevs() slow path.
907 911 #
908 912 # pats/include/exclude cannot be represented as separate
@@ -919,7 +923,7 b' def _makerevset(repo, wopts, slowpath):'
919 923 for p in wopts.exclude_pats:
920 924 matchargs.append(b'x:' + p)
921 925 opts[b'_matchfiles'] = matchargs
922 elif not wopts.follow:
926 elif wopts.filter_revisions_by_pats and not wopts.follow:
923 927 opts[b'_patslog'] = list(wopts.pats)
924 928
925 929 expr = []
General Comments 0
You need to be logged in to leave comments. Login now