993
993
return self.control_files.is_locked()
998
996
self.repository.lock_write()
1003
1004
self.repository.lock_read()
1006
1012
# TODO: test for failed two phase locks. This is known broken.
1010
1014
self.control_files.unlock()
1012
1018
def peek_lock_mode(self):
1013
1019
if self.control_files._lock_count == 0: