--- a/mercurial/dirstate.py Fri Apr 26 18:53:02 2024 +0100
+++ b/mercurial/dirstate.py Fri Apr 26 19:10:35 2024 +0100
@@ -1639,16 +1639,6 @@
use_rust = True
- allowed_matchers = (
- matchmod.alwaysmatcher,
- matchmod.differencematcher,
- matchmod.exactmatcher,
- matchmod.includematcher,
- matchmod.intersectionmatcher,
- matchmod.nevermatcher,
- matchmod.unionmatcher,
- )
-
if rustmod is None:
use_rust = False
elif self._checkcase:
@@ -1656,9 +1646,6 @@
use_rust = False
elif subrepos:
use_rust = False
- elif not isinstance(match, allowed_matchers):
- # Some matchers have yet to be implemented
- use_rust = False
# Get the time from the filesystem so we can disambiguate files that
# appear modified in the present or future.