mercurial/match.py
branchstable
changeset 50338 81c7d04f4722
parent 50337 47686726545d
child 50695 1c31b343e514
--- a/mercurial/match.py	Sat Apr 01 05:57:09 2023 +0200
+++ b/mercurial/match.py	Sat Apr 01 05:58:59 2023 +0200
@@ -629,7 +629,12 @@
 
         self._files = _explicitfiles(kindpats)
         self._prefix = _prefix(kindpats)
-        self._pats, self.matchfn = _buildmatch(kindpats, b'$', root)
+        self._pats, self._matchfn = _buildmatch(kindpats, b'$', root)
+
+    def matchfn(self, fn):
+        if fn in self._fileset:
+            return True
+        return self._matchfn(fn)
 
     @propertycache
     def _dirs(self):