diff mercurial/manifest.py @ 41970:e4ac7e63c213

manifestcache: use `wcache` directory for manifest cache The manifest full text cache is tightly related to the working copy. We should use the `wcache` directory for it, instead of the `cache`. Otherwise, multiple shares would keep overwriting each other cache entry and we loose its benefit. This is also more consistent with the fact this cache file is protected by `wlock`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Mar 2019 00:40:11 +0000
parents d121823072b8
children 89c0c8edc9d4 27d6956d386b
line wrap: on
line diff
--- a/mercurial/manifest.py	Fri Mar 15 15:07:43 2019 +0000
+++ b/mercurial/manifest.py	Thu Mar 14 00:40:11 2019 +0000
@@ -1438,7 +1438,7 @@
         if not util.safehasattr(repo, '_wlockref'):
             return
 
-        self._fulltextcache._opener = repo.cachevfs
+        self._fulltextcache._opener = repo.wcachevfs
         if repo._currentlock(repo._wlockref) is None:
             return