##// END OF EJS Templates
vfsward: register 'write with no lock' warnings as 'check-locks' config...
Boris Feld -
r33532:d645fdfb default
parent child Browse files
Show More
@@ -489,7 +489,7 b' class localrepository(object):'
489 # journal is covered by 'lock'
489 # journal is covered by 'lock'
490 if repo._currentlock(repo._lockref) is None:
490 if repo._currentlock(repo._lockref) is None:
491 repo.ui.develwarn('write with no lock: "%s"' % path,
491 repo.ui.develwarn('write with no lock: "%s"' % path,
492 stacklevel=2)
492 stacklevel=2, config='check-locks')
493 elif repo._currentlock(repo._wlockref) is None:
493 elif repo._currentlock(repo._wlockref) is None:
494 # rest of vfs files are covered by 'wlock'
494 # rest of vfs files are covered by 'wlock'
495 #
495 #
@@ -498,7 +498,7 b' class localrepository(object):'
498 if path.startswith(prefix):
498 if path.startswith(prefix):
499 return
499 return
500 repo.ui.develwarn('write with no wlock: "%s"' % path,
500 repo.ui.develwarn('write with no wlock: "%s"' % path,
501 stacklevel=2)
501 stacklevel=2, config='check-locks')
502 return ret
502 return ret
503 return checkvfs
503 return checkvfs
504
504
General Comments 0
You need to be logged in to leave comments. Login now