sapling/hgext/fsmonitor
FUJIWARA Katsunori 080baefbeb fsmonitor: execute setup procedures only if dirstate is already instantiated
Before this patch, reposetup() of fsmonitor executes setup procedures
for dirstate, even if it isn't yet instantiated at that time.

On the other hand, dirstate might be already instantiated before
reposetup() intentionally (prefilling by chg, for example, see
69de86112468 for detail). If so, just discarding already instantiated
one in reposetup() causes issue.

To resolve both issues above, this patch executes setup procedures,
only if dirstate is already instantiated.

BTW, this patch removes "del repo.unfiltered().__dict__['dirstate']",
because it is responsibility of the code path, which causes
instantiation of dirstate before reposetup(). After this patch, using
localrepo.isfilecached() should avoid creating the corresponded entry
in repo.unfiltered().__dict__.
2017-07-10 23:09:52 +09:00
..
pywatchman fsmonitor: refresh pywatchman to upstream 2016-12-22 11:22:32 -08:00
__init__.py fsmonitor: execute setup procedures only if dirstate is already instantiated 2017-07-10 23:09:52 +09:00
state.py fsmonitor: don't write out state if identity has changed (issue5581) 2017-06-12 15:34:31 -07:00
watchmanclient.py fsmonitor: fix exception message scraping 2016-12-21 13:51:34 -08:00