equal
deleted
inserted
replaced
383 self._always = matcher._always |
383 self._always = matcher._always |
384 |
384 |
385 self._files = [f[len(path) + 1:] for f in matcher._files |
385 self._files = [f[len(path) + 1:] for f in matcher._files |
386 if f.startswith(path + "/")] |
386 if f.startswith(path + "/")] |
387 |
387 |
388 # If the parent repo had a path to this subrepo and no patterns are |
388 # If the parent repo had a path to this subrepo and the matcher is |
389 # specified, this submatcher always matches. |
389 # a prefix matcher, this submatcher always matches. |
390 if not self._always and not matcher._anypats: |
390 if matcher.prefix(): |
391 self._always = any(f == path for f in matcher._files) |
391 self._always = any(f == path for f in matcher._files) |
392 |
392 |
393 self._anypats = matcher._anypats |
393 self._anypats = matcher._anypats |
394 # Some information is lost in the superclass's constructor, so we |
394 # Some information is lost in the superclass's constructor, so we |
395 # can not accurately create the matching function for the subdirectory |
395 # can not accurately create the matching function for the subdirectory |