##// 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 b' class patternmatcher(basematcher):'
377 return set(util.dirs(self._fileset)) | {'.'}
377 return set(util.dirs(self._fileset)) | {'.'}
378
378
379 def visitdir(self, dir):
379 def visitdir(self, dir):
380 if self.always():
381 return 'all'
380 if self.prefix() and dir in self._fileset:
382 if self.prefix() and dir in self._fileset:
381 return 'all'
383 return 'all'
382 return (not self._fileset or
384 return ('.' in self._fileset or
383 '.' in self._fileset or
384 dir in self._fileset or
385 dir in self._fileset or
385 dir in self._dirs or
386 dir in self._dirs or
386 any(parentdir in self._fileset
387 any(parentdir in self._fileset
General Comments 0
You need to be logged in to leave comments. Login now