/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

  • Committer: Alexander Belchenko
  • Date: 2007-04-14 12:19:35 UTC
  • mfrom: (2418 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2422.
  • Revision ID: bialix@ukr.net-20070414121935-s673tupvwywawpwv
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
809
809
        self.lock = lock
810
810
 
811
811
 
 
812
class TokenLockingNotSupported(LockError):
 
813
 
 
814
    _fmt = "The object %(obj)s does not support token specifying a token when locking."
 
815
 
 
816
    internal_error = True
 
817
 
 
818
    def __init__(self, obj):
 
819
        self.obj = obj
 
820
 
 
821
 
 
822
class TokenMismatch(LockBroken):
 
823
 
 
824
    _fmt = "The lock token %(given_token)r does not match lock token %(lock_token)r."
 
825
 
 
826
    internal_error = True
 
827
 
 
828
    def __init__(self, given_token, lock_token):
 
829
        self.given_token = given_token
 
830
        self.lock_token = lock_token
 
831
 
 
832
 
812
833
class PointlessCommit(BzrError):
813
834
 
814
835
    _fmt = "No changes to commit"
2034
2055
class TagsNotSupported(BzrError):
2035
2056
 
2036
2057
    _fmt = ("Tags not supported by %(branch)s;"
2037
 
            " you may be able to use bzr upgrade.")
 
2058
            " you may be able to use bzr upgrade --dirstate-tags.")
2038
2059
 
2039
2060
    def __init__(self, branch):
2040
2061
        self.branch = branch