Skip to content
Snippets Groups Projects
Commit ae7ad53d authored by Mark Thomas's avatar Mark Thomas
Browse files

fsmonitor: only access inner dirstate map if it is available

As part of the dirstate refactor, fsmonitor was updated to directly access the
inner map of the dirstatemap object.

Dirstatemap reimplementations may not use a map like this, so only access it if
it is there.

Differential Revision: https://phab.mercurial-scm.org/D1346
parent 61888bd0
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,11 @@
matchfn = match.matchfn
matchalways = match.always()
dmap = self._map._map
dmap = self._map
if util.safehasattr(dmap, '_map'):
# for better performance, directly access the inner dirstate map if the
# standard dirstate implementation is in use.
dmap = dmap._map
nonnormalset = self._map.nonnormalset
copymap = self._map.copymap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment