/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/smart/branch.py

Add a Transport.is_readonly remote call, let {Branch,Repository}.lock_write remote call return UnlockableTransport, and miscellaneous test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
            return SmartServerResponse(('LockContention',))
128
128
        except errors.TokenMismatch:
129
129
            return SmartServerResponse(('TokenMismatch',))
 
130
        except errors.UnlockableTransport:
 
131
            return SmartServerResponse(('UnlockableTransport',))
130
132
        branch.repository.leave_lock_in_place()
131
133
        branch.leave_lock_in_place()
132
134
        branch.unlock()