##// END OF EJS Templates
changectx: increase perf of walk function...
Durham Goode -
r20292:8dc25419 default
parent child Browse files
Show More
@@ -410,6 +410,15 b' class changectx(basectx):'
410 # for dirstate.walk, files=['.'] means "walk the whole tree".
410 # for dirstate.walk, files=['.'] means "walk the whole tree".
411 # follow that here, too
411 # follow that here, too
412 fset.discard('.')
412 fset.discard('.')
413
414 # avoid the entire walk if we're only looking for specific files
415 if fset and not match.anypats():
416 if util.all([fn in self for fn in fset]):
417 for fn in sorted(fset):
418 if match(fn):
419 yield fn
420 raise StopIteration
421
413 for fn in self:
422 for fn in self:
414 if fn in fset:
423 if fn in fset:
415 # specified pattern is the exact name
424 # specified pattern is the exact name
General Comments 0
You need to be logged in to leave comments. Login now