Show More
@@ -711,6 +711,10 b' class walkopts(object):' | |||||
711 | # include revisions where files were removed |
|
711 | # include revisions where files were removed | |
712 | force_changelog_traversal = attr.ib(default=False) # type: bool |
|
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 | # sort revisions prior to traversal: 'desc', 'topo', or None |
|
718 | # sort revisions prior to traversal: 'desc', 'topo', or None | |
715 | sort_revisions = attr.ib(default=None) # type: Optional[bytes] |
|
719 | sort_revisions = attr.ib(default=None) # type: Optional[bytes] | |
716 |
|
720 | |||
@@ -902,7 +906,7 b' def _makerevset(repo, wopts, slowpath):' | |||||
902 | b'user': wopts.users, |
|
906 | b'user': wopts.users, | |
903 | } |
|
907 | } | |
904 |
|
908 | |||
905 | if slowpath: |
|
909 | if wopts.filter_revisions_by_pats and slowpath: | |
906 | # See walkchangerevs() slow path. |
|
910 | # See walkchangerevs() slow path. | |
907 | # |
|
911 | # | |
908 | # pats/include/exclude cannot be represented as separate |
|
912 | # pats/include/exclude cannot be represented as separate | |
@@ -919,7 +923,7 b' def _makerevset(repo, wopts, slowpath):' | |||||
919 | for p in wopts.exclude_pats: |
|
923 | for p in wopts.exclude_pats: | |
920 | matchargs.append(b'x:' + p) |
|
924 | matchargs.append(b'x:' + p) | |
921 | opts[b'_matchfiles'] = matchargs |
|
925 | opts[b'_matchfiles'] = matchargs | |
922 | elif not wopts.follow: |
|
926 | elif wopts.filter_revisions_by_pats and not wopts.follow: | |
923 | opts[b'_patslog'] = list(wopts.pats) |
|
927 | opts[b'_patslog'] = list(wopts.pats) | |
924 |
|
928 | |||
925 | expr = [] |
|
929 | expr = [] |
General Comments 0
You need to be logged in to leave comments.
Login now