diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -80,6 +80,7 @@ self._plchangecallbacks = {} self._origpl = None self._updatedfiles = set() + self._mapcls = dirstatemap @contextlib.contextmanager def parentchange(self): @@ -128,7 +129,7 @@ @propertycache def _map(self): '''Returns the dirstate map.''' - self._map = dirstatemap(self._ui, self._opener, self._root) + self._map = self._mapcls(self._ui, self._opener, self._root) return self._map @property