##// END OF EJS Templates
dirstate: make map implementation overridable...
Mark Thomas -
r35085:8db4ca76 default
parent child Browse files
Show More
@@ -80,6 +80,7 b' class dirstate(object):'
80 self._plchangecallbacks = {}
80 self._plchangecallbacks = {}
81 self._origpl = None
81 self._origpl = None
82 self._updatedfiles = set()
82 self._updatedfiles = set()
83 self._mapcls = dirstatemap
83
84
84 @contextlib.contextmanager
85 @contextlib.contextmanager
85 def parentchange(self):
86 def parentchange(self):
@@ -128,7 +129,7 b' class dirstate(object):'
128 @propertycache
129 @propertycache
129 def _map(self):
130 def _map(self):
130 """Return the dirstate contents (see documentation for dirstatemap)."""
131 """Return the dirstate contents (see documentation for dirstatemap)."""
131 self._map = dirstatemap(self._ui, self._opener, self._root)
132 self._map = self._mapcls(self._ui, self._opener, self._root)
132 return self._map
133 return self._map
133
134
134 @property
135 @property
General Comments 0
You need to be logged in to leave comments. Login now