equal
deleted
inserted
replaced
641 """ |
641 """ |
642 |
642 |
643 def __init__(self, root, kindpats, badfn=None): |
643 def __init__(self, root, kindpats, badfn=None): |
644 super(patternmatcher, self).__init__(badfn) |
644 super(patternmatcher, self).__init__(badfn) |
645 kindpats.sort() |
645 kindpats.sort() |
|
646 |
|
647 if rustmod is not None: |
|
648 # We need to pass the patterns to Rust because they can contain |
|
649 # patterns from the user interface |
|
650 self._kindpats = kindpats |
646 |
651 |
647 roots, dirs, parents = _rootsdirsandparents(kindpats) |
652 roots, dirs, parents = _rootsdirsandparents(kindpats) |
648 self._files = _explicitfiles(kindpats) |
653 self._files = _explicitfiles(kindpats) |
649 self._dirs_explicit = set(dirs) |
654 self._dirs_explicit = set(dirs) |
650 self._dirs = parents |
655 self._dirs = parents |