/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

Merge from bzr.dev.hpss.api.changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
755
755
        self.lock = lock
756
756
 
757
757
 
 
758
class TokenLockingNotSupported(LockError):
 
759
 
 
760
    _fmt = "The object %(obj)s does not support token specifying a token when locking."
 
761
 
 
762
    internal_error = True
 
763
 
 
764
    def __init__(self, obj):
 
765
        self.obj = obj
 
766
 
 
767
 
 
768
class TokenMismatch(LockError):
 
769
 
 
770
    _fmt = "The lock token %(given_token)r does not match lock token %(lock_token)r."
 
771
 
 
772
    internal_error = True
 
773
 
 
774
    def __init__(self, given_token, lock_token):
 
775
        self.given_token = given_token
 
776
        self.lock_token = lock_token
 
777
 
 
778
 
758
779
class PointlessCommit(BzrError):
759
780
 
760
781
    _fmt = "No changes to commit"