~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_break_lock.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-26 21:33:20 UTC
  • mfrom: (3015.2.15 pack.read-locks)
  • Revision ID: pqm@pqm.ubuntu.com-20071126213320-adxxra3gsie5inhw
(robertc) Many fixes to support packs on the smart server and as the
        default format. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import bzrlib
22
22
import bzrlib.errors as errors
23
 
from bzrlib.tests import TestCase, TestCaseWithTransport
 
23
from bzrlib.tests import TestCase, TestCaseWithTransport, TestNotApplicable
24
24
from bzrlib.tests.branch_implementations.test_branch import TestCaseWithBranch
25
25
 
26
26
 
51
51
        # break lock on the branch should try on the repository even
52
52
        # if the branch isn't locked
53
53
        self.branch.repository.lock_write()
 
54
        other_instance = self.branch.repository.bzrdir.open_repository()
 
55
        if not other_instance.get_physical_lock_status():
 
56
            raise TestNotApplicable("Repository does not lock persistently.")
54
57
        bzrlib.ui.ui_factory.stdin = StringIO("y\n")
55
58
        try:
56
59
            self.unused_branch.break_lock()