/breezy-svn/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-svn/trunk

« back to all changes in this revision

Viewing changes to tests/mapping_implementations/test_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2017-08-05 01:07:47 UTC
  • Revision ID: jelmer@jelmer.uk-20170805010747-cy4xh549a8ak6l51
More work moving to newer subvertpy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from breezy import urlutils
19
19
from breezy.branch import Branch
20
 
from breezy.bzrdir import BzrDir
 
20
from breezy.controldir import ControlDir
21
21
from breezy.errors import (
22
22
    NoSuchRevision,
23
23
    UnsupportedOperation,
733
733
        repository.set_layout(RootLayout())
734
734
        mapping = repository.get_mapping()
735
735
 
736
 
        to_bzrdir = BzrDir.create("e")
737
 
        to_repos = to_bzrdir.create_repository()
 
736
        to_controldir = ControlDir.create("e")
 
737
        to_repos = to_controldir.create_repository()
738
738
 
739
739
        repository.copy_content_into(to_repos,
740
740
                repository.generate_revision_id(2, "", mapping))
812
812
 
813
813
        oldrepos = Repository.open(repos_url)
814
814
        oldrepos.set_layout(TrunkLayout(0))
815
 
        dir = BzrDir.create("f")
 
815
        dir = ControlDir.create("f")
816
816
        newrepos = dir.create_repository()
817
817
        oldrepos.copy_content_into(newrepos)
818
818
 
980
980
 
981
981
        oldrepos = Repository.open(repos_url)
982
982
        oldrepos.set_layout(TrunkLayout(0))
983
 
        dir = BzrDir.create("f")
 
983
        dir = ControlDir.create("f")
984
984
        newrepos = dir.create_repository()
985
985
        oldrepos.copy_content_into(newrepos)
986
986