~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository_reference/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-02 01:44:26 UTC
  • mfrom: (6518 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120402014426-0o5qtysohyl006b2
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    remote,
28
28
    urlutils,
29
29
    )
30
 
from bzrlib.bzrdir import BzrDir
 
30
from bzrlib.controldir import ControlDir
31
31
from bzrlib.tests import multiply_tests
32
32
from bzrlib.tests.per_repository import (
33
33
    all_repository_format_scenarios,
49
49
 
50
50
    def readonly_repository(self, repo):
51
51
        relpath = urlutils.basename(repo.bzrdir.user_url.rstrip('/'))
52
 
        return BzrDir.open_from_transport(
 
52
        return ControlDir.open_from_transport(
53
53
            self.get_readonly_transport(relpath)).open_repository()
54
54
 
55
55