##// END OF EJS Templates
match: don't remove '.' from _includeroots...
Martin von Zweigbergk -
r25579:b76410ee default
parent child Browse files
Show More
@@ -126,7 +126,6 b' class match(object):'
126 self.includepat, im = _buildmatch(ctx, kindpats, '(?:/|$)',
126 self.includepat, im = _buildmatch(ctx, kindpats, '(?:/|$)',
127 listsubrepos, root)
127 listsubrepos, root)
128 self._includeroots.update(_roots(kindpats))
128 self._includeroots.update(_roots(kindpats))
129 self._includeroots.discard('.')
130 self._includedirs.update(util.dirs(self._includeroots))
129 self._includedirs.update(util.dirs(self._includeroots))
131 matchfns.append(im)
130 matchfns.append(im)
132 if exclude:
131 if exclude:
@@ -225,6 +224,7 b' class match(object):'
225 if dir in self._excluderoots:
224 if dir in self._excluderoots:
226 return False
225 return False
227 if (self._includeroots and
226 if (self._includeroots and
227 '.' not in self._includeroots and
228 dir not in self._includeroots and
228 dir not in self._includeroots and
229 dir not in self._includedirs and
229 dir not in self._includedirs and
230 not any(parent in self._includeroots
230 not any(parent in self._includeroots
General Comments 0
You need to be logged in to leave comments. Login now