~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Support unbreakable locks for trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
644
644
        self.message = message
645
645
 
646
646
 
 
647
class LockActive(LockError):
 
648
 
 
649
    _fmt = "The lock for '%(lock_description)s' is in use and cannot be broken."
 
650
 
 
651
    internal_error = False
 
652
 
 
653
    def __init__(self, lock_description):
 
654
        self.lock_description = lock_description
 
655
 
 
656
 
647
657
class CommitNotPossible(LockError):
648
658
 
649
659
    _fmt = "A commit was attempted but we do not have a write lock open."