/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/tests/branch_implementations/test_locking.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-20 08:33:47 UTC
  • mfrom: (2018.5.174 hpss)
  • Revision ID: pqm@pqm.ubuntu.com-20070420083347-m00rr4y00xjnv7or
(Andrew Bennetts, and many others) High performance smart server: add smart (non-vfs) commands to the client and server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib import errors
20
20
from bzrlib.branch import BzrBranchFormat4
 
21
from bzrlib.bzrdir import RemoteBzrDirFormat
21
22
from bzrlib.tests import TestSkipped
22
23
from bzrlib.tests.branch_implementations.test_branch import TestCaseWithBranch
23
24
from bzrlib.tests.lock_helpers import TestPreventLocking, LockWrapper
39
40
        b = LockWrapper(self.locks, self.get_branch(), 'b')
40
41
        b.repository = LockWrapper(self.locks, b.repository, 'r')
41
42
        bcf = b.control_files
42
 
        rcf = b.repository.control_files
 
43
        rcf = getattr(b.repository, 'control_files', None)
 
44
        if rcf is None:
 
45
            raise TestSkipped(
 
46
                "This tests depends on being able to instrument "
 
47
                "repository.control_files, but %r doesn't have control_files."
 
48
                % (b.repository,))
43
49
 
44
50
        # Look out for branch types that reuse their control files
45
51
        self.combined_control = bcf is rcf