mercurial/match.py
changeset 51603 a2afa35641c9
parent 51601 ea3343104f07
child 51625 aa23b19e6da4
equal deleted inserted replaced
51602:68929cf3c0c6 51603:a2afa35641c9
   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