~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-07 07:27:16 UTC
  • mfrom: (3408.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080507072716-lr54bdt55km4feso
(mbp) Remove code deprecated prior to 1.1 and its tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
894
894
        self.obj = obj
895
895
 
896
896
 
897
 
class ReadOnlyLockError(LockError):
898
 
 
899
 
    _fmt = "Cannot acquire write lock on %(fname)s. %(msg)s"
900
 
 
901
 
    @symbol_versioning.deprecated_method(symbol_versioning.zero_ninetytwo)
902
 
    def __init__(self, fname, msg):
903
 
        LockError.__init__(self, '')
904
 
        self.fname = fname
905
 
        self.msg = msg
906
 
 
907
 
 
908
897
class LockFailed(LockError):
909
898
 
910
899
    internal_error = False
1066
1055
        BzrError.__init__(self, branch=branch, revision=revision)
1067
1056
 
1068
1057
 
1069
 
# zero_ninetyone: this exception is no longer raised and should be removed
1070
 
class NotLeftParentDescendant(InternalBzrError):
1071
 
 
1072
 
    _fmt = ("Revision %(old_revision)s is not the left parent of"
1073
 
            " %(new_revision)s, but branch %(branch_location)s expects this")
1074
 
 
1075
 
    def __init__(self, branch, old_revision, new_revision):
1076
 
        BzrError.__init__(self, branch_location=branch.base,
1077
 
                          old_revision=old_revision,
1078
 
                          new_revision=new_revision)
1079
 
 
1080
 
 
1081
1058
class RangeInChangeOption(BzrError):
1082
1059
 
1083
1060
    _fmt = "Option --change does not accept revision ranges"