##// END OF EJS Templates
match: drop optimization (?) of 'parentdirs' calculation...
Martin von Zweigbergk -
r25577:a410479c default
parent child Browse files
Show More
@@ -224,19 +224,18 b' class match(object):'
224 224 '''
225 225 if dir in self._excluderoots:
226 226 return False
227 parentdirs = None
228 227 if (self._includeroots and
229 228 dir not in self._includeroots and
230 229 dir not in self._includedirs):
231 parentdirs = list(util.finddirs(dir))
232 if not any(parent in self._includeroots for parent in parentdirs):
230 if not any(parent in self._includeroots
231 for parent in util.finddirs(dir)):
233 232 return False
234 233 return (not self._fileroots or
235 234 '.' in self._fileroots or
236 235 dir in self._fileroots or
237 236 dir in self._dirs or
238 237 any(parentdir in self._fileroots
239 for parentdir in parentdirs or util.finddirs(dir)))
238 for parentdir in util.finddirs(dir)))
240 239
241 240 def exact(self, f):
242 241 '''Returns True if f is in .files().'''
General Comments 0
You need to be logged in to leave comments. Login now