##// END OF EJS Templates
log: make "slowpath" condition slightly more readable...
Yuya Nishihara -
r35474:5bec509d default
parent child Browse files
Show More
@@ -2193,8 +2193,7 b' def walkchangerevs(repo, match, opts, pr'
2193 if not revs:
2193 if not revs:
2194 return []
2194 return []
2195 wanted = set()
2195 wanted = set()
2196 slowpath = match.anypats() or ((match.isexact() or match.prefix()) and
2196 slowpath = match.anypats() or (not match.always() and opts.get('removed'))
2197 opts.get('removed'))
2198 fncache = {}
2197 fncache = {}
2199 change = repo.changectx
2198 change = repo.changectx
2200
2199
@@ -2390,8 +2389,7 b' def _makelogrevset(repo, pats, opts, rev'
2390 # platforms without shell expansion (windows).
2389 # platforms without shell expansion (windows).
2391 wctx = repo[None]
2390 wctx = repo[None]
2392 match, pats = scmutil.matchandpats(wctx, pats, opts)
2391 match, pats = scmutil.matchandpats(wctx, pats, opts)
2393 slowpath = match.anypats() or ((match.isexact() or match.prefix()) and
2392 slowpath = match.anypats() or (not match.always() and opts.get('removed'))
2394 opts.get('removed'))
2395 if not slowpath:
2393 if not slowpath:
2396 for f in match.files():
2394 for f in match.files():
2397 if follow and f not in wctx:
2395 if follow and f not in wctx:
General Comments 0
You need to be logged in to leave comments. Login now