~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade_stacked.py

(jelmer) Make "bzr branches" support our shared-repo style of "sibling
 branches" too. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Tests for upgrades of various stacking situations."""
19
19
 
20
20
from bzrlib import (
21
 
    controldir,
 
21
    bzrdir,
22
22
    check,
23
23
    errors,
24
24
    tests,
71
71
        self.assertTrue(stacked.open_branch().get_stacked_on_url())
72
72
        # now we'll upgrade the underlying branch, then upgrade the stacked
73
73
        # branch, and this should still work.
74
 
        new_format = controldir.format_registry.make_bzrdir(
 
74
        new_format = bzrdir.format_registry.make_bzrdir(
75
75
            self.scenario_new_format)
76
76
        upgrade('base', new_format)
77
77
        # in some cases you'll get an error if the underlying model has
81
81
                stacked.open_branch)
82
82
        else:
83
83
            check.check_dwim('stacked', False, True, True)
84
 
        stacked = controldir.ControlDir.open('stacked')
 
84
        stacked = bzrdir.BzrDir.open('stacked')
85
85
        # but we can upgrade the stacked repository
86
86
        upgrade('stacked', new_format)
87
87
        # and now it opens ok
88
 
        stacked = controldir.ControlDir.open('stacked')
 
88
        stacked = bzrdir.BzrDir.open('stacked')
89
89
        # And passes check.
90
90
        check.check_dwim('stacked', False, True, True)