~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_reconfigure.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from bzrlib import (
18
18
    branch as _mod_branch,
19
 
    bzrdir,
 
19
    controldir,
20
20
    errors,
21
21
    reconfigure,
22
22
    repository,
72
72
        checkout = branch.create_checkout('checkout')
73
73
        reconfiguration = reconfigure.Reconfigure.to_branch(checkout.bzrdir)
74
74
        reconfiguration.apply()
75
 
        reconfigured = bzrdir.BzrDir.open('checkout').open_branch()
 
75
        reconfigured = controldir.ControlDir.open('checkout').open_branch()
76
76
        self.assertIs(None, reconfigured.get_bound_location())
77
77
 
78
78
    def prepare_lightweight_checkout_to_branch(self):
445
445
            r"Requested reconfiguration of '.*' is not supported.")
446
446
 
447
447
    def test_lightweight_checkout_to_tree_preserves_reference_locations(self):
448
 
        format = bzrdir.format_registry.make_bzrdir('1.9')
 
448
        format = controldir.format_registry.make_bzrdir('1.9')
449
449
        format.set_branch_format(_mod_branch.BzrBranchFormat8())
450
450
        tree = self.make_branch_and_tree('tree', format=format)
451
451
        tree.branch.set_reference_info('file_id', 'path', '../location')