--- a/mercurial/localrepo.py Thu Sep 03 14:14:40 2020 +0530
+++ b/mercurial/localrepo.py Tue Sep 08 18:46:01 2020 +0530
@@ -1250,7 +1250,12 @@
msg = b'accessing cache with vfs instead of cachevfs: "%s"'
repo.ui.develwarn(msg % path, stacklevel=3, config=b"cache-vfs")
# path prefixes covered by 'lock'
- vfs_path_prefixes = (b'journal.', b'undo.', b'strip-backup/')
+ vfs_path_prefixes = (
+ b'journal.',
+ b'undo.',
+ b'strip-backup/',
+ b'cache/',
+ )
if any(path.startswith(prefix) for prefix in vfs_path_prefixes):
if repo._currentlock(repo._lockref) is None:
repo.ui.develwarn(