mercurial/match.py
changeset 44530 4d1634e59f13
parent 44452 9d2b2df2c2ba
child 45682 d2e1dcd4490d
--- a/mercurial/match.py	Fri Jan 17 15:09:02 2020 +0100
+++ b/mercurial/match.py	Fri Jan 24 11:06:01 2020 +0100
@@ -666,7 +666,10 @@
 class includematcher(basematcher):
     def __init__(self, root, kindpats, badfn=None):
         super(includematcher, self).__init__(badfn)
-
+        if rustmod is not None:
+            # We need to pass the patterns to Rust because they can contain
+            # patterns from the user interface
+            self._kindpats = kindpats
         self._pats, self.matchfn = _buildmatch(kindpats, b'(?:/|$)', root)
         self._prefix = _prefix(kindpats)
         roots, dirs, parents = _rootsdirsandparents(kindpats)