Show More
@@ -85,7 +85,7 b' def _kindpatsalwaysmatch(kindpats):' | |||||
85 | return True |
|
85 | return True | |
86 |
|
86 | |||
87 | class match(object): |
|
87 | class match(object): | |
88 |
def __init__(self, root, cwd, patterns, include= |
|
88 | def __init__(self, root, cwd, patterns, include=None, exclude=None, | |
89 | default='glob', exact=False, auditor=None, ctx=None, |
|
89 | default='glob', exact=False, auditor=None, ctx=None, | |
90 | listsubrepos=False, warn=None, badfn=None): |
|
90 | listsubrepos=False, warn=None, badfn=None): | |
91 | """build an object to match a set of file patterns |
|
91 | """build an object to match a set of file patterns | |
@@ -117,6 +117,8 b' class match(object):' | |||||
117 | the same directory |
|
117 | the same directory | |
118 | '<something>' - a pattern of the specified default type |
|
118 | '<something>' - a pattern of the specified default type | |
119 | """ |
|
119 | """ | |
|
120 | include = include or [] | |||
|
121 | exclude = exclude or [] | |||
120 |
|
122 | |||
121 | self._root = root |
|
123 | self._root = root | |
122 | self._cwd = cwd |
|
124 | self._cwd = cwd |
General Comments 0
You need to be logged in to leave comments.
Login now