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