/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/repository.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:
153
153
            token = repository.lock_write(token=token)
154
154
        except errors.LockContention, e:
155
155
            return SmartServerResponse(('LockContention',))
 
156
        except errors.UnlockableTransport:
 
157
            return SmartServerResponse(('UnlockableTransport',))
156
158
        repository.leave_lock_in_place()
157
159
        repository.unlock()
158
160
        if token is None: