Mercurial > hg
changeset 33538:54b36d3ff7f6
cachevfs: add a devel warning for cache access though 'vfs'
This will help third party extensions to migrate to the new 'cachevfs'.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sat, 15 Jul 2017 23:05:15 +0200 |
parents | 709dde1c5dd5 |
children | 460733327640 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Jul 15 23:30:25 2017 +0200 +++ b/mercurial/localrepo.py Sat Jul 15 23:05:15 2017 +0200 @@ -487,6 +487,9 @@ 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: