##// END OF EJS Templates
walkchangerevs: avoid match.files() in conditions...
Martin von Zweigbergk -
r25272:6c76c42a default
parent child Browse files
Show More
@@ -1755,7 +1755,8 b' def walkchangerevs(repo, match, opts, pr'
1755 if not revs:
1755 if not revs:
1756 return []
1756 return []
1757 wanted = set()
1757 wanted = set()
1758 slowpath = match.anypats() or (match.files() and opts.get('removed'))
1758 slowpath = match.anypats() or ((match.isexact() or match.prefix()) and
1759 opts.get('removed'))
1759 fncache = {}
1760 fncache = {}
1760 change = repo.changectx
1761 change = repo.changectx
1761
1762
@@ -1835,7 +1836,7 b' def walkchangerevs(repo, match, opts, pr'
1835 # Now that wanted is correctly initialized, we can iterate over the
1836 # Now that wanted is correctly initialized, we can iterate over the
1836 # revision range, yielding only revisions in wanted.
1837 # revision range, yielding only revisions in wanted.
1837 def iterate():
1838 def iterate():
1838 if follow and not match.files():
1839 if follow and match.always():
1839 ff = _followfilter(repo, onlyfirst=opts.get('follow_first'))
1840 ff = _followfilter(repo, onlyfirst=opts.get('follow_first'))
1840 def want(rev):
1841 def want(rev):
1841 return ff.match(rev) and rev in wanted
1842 return ff.match(rev) and rev in wanted
General Comments 0
You need to be logged in to leave comments. Login now