##// END OF EJS Templates
match: break boolean expressions into one operand per line...
Martin von Zweigbergk -
r25576:d02f4b3e default
parent child Browse files
Show More
@@ -225,13 +225,16 b' class match(object):'
225 225 if dir in self._excluderoots:
226 226 return False
227 227 parentdirs = None
228 if (self._includeroots and dir not in self._includeroots and
229 dir not in self._includedirs):
228 if (self._includeroots and
229 dir not in self._includeroots and
230 dir not in self._includedirs):
230 231 parentdirs = list(util.finddirs(dir))
231 232 if not any(parent in self._includeroots for parent in parentdirs):
232 233 return False
233 return (not self._fileroots or '.' in self._fileroots or
234 dir in self._fileroots or dir in self._dirs or
234 return (not self._fileroots or
235 '.' in self._fileroots or
236 dir in self._fileroots or
237 dir in self._dirs or
235 238 any(parentdir in self._fileroots
236 239 for parentdir in parentdirs or util.finddirs(dir)))
237 240
General Comments 0
You need to be logged in to leave comments. Login now