##// END OF EJS Templates
locks: expect repo lock, not wlock, when writing to .hg/strip-backup/...
Martin von Zweigbergk -
r45554:5797dbb6 default
parent child Browse files
Show More
@@ -1235,8 +1235,9 b' class localrepository(object):'
1235 if path.startswith(b'cache/'):
1235 if path.startswith(b'cache/'):
1236 msg = b'accessing cache with vfs instead of cachevfs: "%s"'
1236 msg = b'accessing cache with vfs instead of cachevfs: "%s"'
1237 repo.ui.develwarn(msg % path, stacklevel=3, config=b"cache-vfs")
1237 repo.ui.develwarn(msg % path, stacklevel=3, config=b"cache-vfs")
1238 if path.startswith(b'journal.') or path.startswith(b'undo.'):
1238 # path prefixes covered by 'lock'
1239 # journal is covered by 'lock'
1239 vfs_path_prefixes = (b'journal.', b'undo.', b'strip-backup/')
1240 if any(path.startswith(prefix) for prefix in vfs_path_prefixes):
1240 if repo._currentlock(repo._lockref) is None:
1241 if repo._currentlock(repo._lockref) is None:
1241 repo.ui.develwarn(
1242 repo.ui.develwarn(
1242 b'write with no lock: "%s"' % path,
1243 b'write with no lock: "%s"' % path,
General Comments 0
You need to be logged in to leave comments. Login now