# HG changeset patch # User Boris Feld # Date 2017-07-15 21:05:15 # Node ID 54b36d3ff7f6cf9d5081b6e205f992cc325be8d6 # Parent 709dde1c5dd583a11f8a57ccd7f424be1822e3a9 cachevfs: add a devel warning for cache access though 'vfs' This will help third party extensions to migrate to the new 'cachevfs'. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -487,6 +487,9 @@ class localrepository(object): if path.startswith(repo.path): # truncate name relative to the repository (.hg) path = path[len(repo.path) + 1:] + if path.startswith('cache/'): + msg = 'accessing cache with vfs instead of cachevfs: "%s"' + repo.ui.develwarn(msg % path, stacklevel=2, config="cache-vfs") if path.startswith('journal.'): # journal is covered by 'lock' if repo._currentlock(repo._lockref) is None: