##// END OF EJS Templates
match: optimize visitdir() for when no explicit files are listed...
Martin von Zweigbergk -
r32554:f44ea253 default
parent child Browse files
Show More
@@ -377,10 +377,11 class patternmatcher(basematcher):
377 377 return set(util.dirs(self._fileset)) | {'.'}
378 378
379 379 def visitdir(self, dir):
380 if self.always():
381 return 'all'
380 382 if self.prefix() and dir in self._fileset:
381 383 return 'all'
382 return (not self._fileset or
383 '.' in self._fileset or
384 return ('.' in self._fileset or
384 385 dir in self._fileset or
385 386 dir in self._dirs or
386 387 any(parentdir in self._fileset
General Comments 0
You need to be logged in to leave comments. Login now