~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Implement RemoteRepository.lock_write/unlock to expect and send tokens over the
smart protocol as appropriate, so that locking operations on RemoteRepositories
work correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
765
765
        self.obj = obj
766
766
 
767
767
 
768
 
class TokenMismatch(LockError):
 
768
class TokenMismatch(LockBroken):
769
769
 
770
770
    _fmt = "The lock token %(given_token)r does not match lock token %(lock_token)r."
771
771