##// END OF EJS Templates
cachevfs: add a devel warning for cache access though 'vfs'...
Boris Feld -
r33538:54b36d3f default
parent child Browse files
Show More
@@ -487,6 +487,9 b' class localrepository(object):'
487 if path.startswith(repo.path):
487 if path.startswith(repo.path):
488 # truncate name relative to the repository (.hg)
488 # truncate name relative to the repository (.hg)
489 path = path[len(repo.path) + 1:]
489 path = path[len(repo.path) + 1:]
490 if path.startswith('cache/'):
491 msg = 'accessing cache with vfs instead of cachevfs: "%s"'
492 repo.ui.develwarn(msg % path, stacklevel=2, config="cache-vfs")
490 if path.startswith('journal.'):
493 if path.startswith('journal.'):
491 # journal is covered by 'lock'
494 # journal is covered by 'lock'
492 if repo._currentlock(repo._lockref) is None:
495 if repo._currentlock(repo._lockref) is None:
General Comments 0
You need to be logged in to leave comments. Login now