/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: Martin Pool
  • Date: 2007-04-01 06:19:16 UTC
  • mfrom: (2323.5.20 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: mbp@sourcefrog.net-20070401061916-plpgsxdf8g7gll9o
Merge 0.15 final release back to trunk, including: recommend upgrades of old workingtrees, handle multiple http redirections, some dirstate fixes, 

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        self.message = message
176
176
 
177
177
 
178
 
class DisabledMethod(BzrError):
179
 
 
180
 
    _fmt = "The smart server method '%(class_name)s' is disabled."
181
 
 
182
 
    internal_error = True
183
 
 
184
 
    def __init__(self, class_name):
185
 
        BzrError.__init__(self)
186
 
        self.class_name = class_name
187
 
 
188
 
 
189
178
class InvalidEntryName(BzrError):
190
179
    
191
180
    _fmt = "Invalid entry name: %(name)s"
809
798
        self.lock = lock
810
799
 
811
800
 
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
 
 
833
801
class PointlessCommit(BzrError):
834
802
 
835
803
    _fmt = "No changes to commit"
2055
2023
class TagsNotSupported(BzrError):
2056
2024
 
2057
2025
    _fmt = ("Tags not supported by %(branch)s;"
2058
 
            " you may be able to use bzr upgrade --dirstate-tags.")
 
2026
            " you may be able to use bzr upgrade.")
2059
2027
 
2060
2028
    def __init__(self, branch):
2061
2029
        self.branch = branch