##// END OF EJS Templates
manifest.walk: special-case match.always() for speed...
Martin von Zweigbergk -
r24683:4eaea0ed default
parent child Browse files
Show More
@@ -222,6 +222,11 b' class manifestdict(object):'
222
222
223 It also reports nonexistent files by marking them bad with match.bad().
223 It also reports nonexistent files by marking them bad with match.bad().
224 '''
224 '''
225 if match.always():
226 for f in iter(self):
227 yield f
228 return
229
225 fset = set(match.files())
230 fset = set(match.files())
226
231
227 # avoid the entire walk if we're only looking for specific files
232 # avoid the entire walk if we're only looking for specific files
@@ -607,6 +612,11 b' class treemanifest(object):'
607
612
608 It also reports nonexistent files by marking them bad with match.bad().
613 It also reports nonexistent files by marking them bad with match.bad().
609 '''
614 '''
615 if match.always():
616 for f in iter(self):
617 yield f
618 return
619
610 fset = set(match.files())
620 fset = set(match.files())
611
621
612 for fn in self._walk(match):
622 for fn in self._walk(match):
General Comments 0
You need to be logged in to leave comments. Login now