Part of bzrlib.lock View In Hierarchy
|Method||temporary_write_lock||Try to grab a write lock on the file.|
Inherited from _w32c_FileLock:
|Method||_clear_f||Clear the self.f attribute cleanly.|
On platforms that support it, this will upgrade to a write lock without unlocking the file. Otherwise, this will release the read lock, and try to acquire a write lock.
|Returns||A token which can be used to switch back to a read lock.|