/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Implement a 'ReadLock.temporary_write_lock()' to upgrade to a write-lock in-process.
Implement it for _fcntl.
This is the api that can be used when we want to update a dirty dirstate
even though we only have a read lock.
On win32, this will actually unlock and re-lock the file. Which is part of
the api description. But we don't have to limit ourselves to the lowest
common denominator on all platforms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
747
747
    # bits?
748
748
 
749
749
    internal_error = False
750
 
    
 
750
 
751
751
    def __init__(self, lock):
752
752
        self.lock = lock
753
753