mercurial/dirstate.py
changeset 51626 865efc020c33
parent 51273 79cd29d598af
equal deleted inserted replaced
51625:aa23b19e6da4 51626:865efc020c33
  1637         dmap = self._map
  1637         dmap = self._map
  1638         dmap.preload()
  1638         dmap.preload()
  1639 
  1639 
  1640         use_rust = True
  1640         use_rust = True
  1641 
  1641 
  1642         allowed_matchers = (
       
  1643             matchmod.alwaysmatcher,
       
  1644             matchmod.differencematcher,
       
  1645             matchmod.exactmatcher,
       
  1646             matchmod.includematcher,
       
  1647             matchmod.intersectionmatcher,
       
  1648             matchmod.nevermatcher,
       
  1649             matchmod.unionmatcher,
       
  1650         )
       
  1651 
       
  1652         if rustmod is None:
  1642         if rustmod is None:
  1653             use_rust = False
  1643             use_rust = False
  1654         elif self._checkcase:
  1644         elif self._checkcase:
  1655             # Case-insensitive filesystems are not handled yet
  1645             # Case-insensitive filesystems are not handled yet
  1656             use_rust = False
  1646             use_rust = False
  1657         elif subrepos:
  1647         elif subrepos:
  1658             use_rust = False
       
  1659         elif not isinstance(match, allowed_matchers):
       
  1660             # Some matchers have yet to be implemented
       
  1661             use_rust = False
  1648             use_rust = False
  1662 
  1649 
  1663         # Get the time from the filesystem so we can disambiguate files that
  1650         # Get the time from the filesystem so we can disambiguate files that
  1664         # appear modified in the present or future.
  1651         # appear modified in the present or future.
  1665         try:
  1652         try: