~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2010-09-13 02:32:44 UTC
  • mfrom: (4797.58.9 2.1)
  • mto: (5050.17.16 2.2)
  • mto: This revision was merged to the branch mainline in revision 5419.
  • Revision ID: andrew.bennetts@canonical.com-20100913023244-100b3gi8ttwyrow2
MergeĀ lp:bzr/2.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1070
1070
        self.target = target
1071
1071
 
1072
1072
 
 
1073
class LockCorrupt(LockError):
 
1074
 
 
1075
    _fmt = ("Lock is apparently held, but corrupted: %(corruption_info)s\n"
 
1076
            "Use 'bzr break-lock' to clear it")
 
1077
 
 
1078
    internal_error = False
 
1079
 
 
1080
    def __init__(self, corruption_info, file_data=None):
 
1081
        self.corruption_info = corruption_info
 
1082
        self.file_data = file_data
 
1083
 
 
1084
 
1073
1085
class LockNotHeld(LockError):
1074
1086
 
1075
1087
    _fmt = "Lock not held: %(lock)s"