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 |
|
|
228 | if (self._includeroots and | |
|
229 | dir not in self._includeroots and | |
|
229 | 230 |
|
|
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 |
|
|
234 |
|
|
|
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