~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_stacking.py

(mbp) add reconfigure --stacked-on and --unstacked

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
        trunk_revid = trunk_tree.commit('revision on mainline')
185
185
        # and make branch from it which is stacked
186
186
        try:
187
 
            new_dir = trunk_tree.bzrdir.sprout('newbranch', stacked=True)
 
187
            new_dir = trunk_tree.bzrdir.sprout(self.get_url('newbranch'),
 
188
                stacked=True)
188
189
        except unstackable_format_errors, e:
189
190
            raise TestNotApplicable(e)
190
191
        # stacked repository
191
192
        self.assertRevisionNotInRepository('newbranch', trunk_revid)
 
193
        # TODO: we'd like to commit in the stacked repository; that requires
 
194
        # some care (maybe a BranchBuilder) if it's remote and has no
 
195
        # workingtree
 
196
        ##newbranch_revid = new_dir.open_workingtree().commit('revision in '
 
197
            ##'newbranch')
192
198
        # now when we unstack that should implicitly fetch, to make sure that
193
199
        # the branch will still work
194
200
        new_branch = new_dir.open_branch()