Submitter | Pierre-Yves David |
---|---|
Date | March 16, 2017, 11:28 a.m. |
Message ID | <83112ff862072df86354.1489663688@nodosa.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/19388/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -117,8 +117,10 @@ class match(object): the same directory '<something>' - a pattern of the specified default type """ - include = include or [] - exclude = exclude or [] + if include is None: + include = [] + if exclude is None: + exclude = [] self._root = root self._cwd = cwd