~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_split.py

  • Committer: Aaron Bentley
  • Date: 2007-12-17 19:21:20 UTC
  • mto: This revision was merged to the branch mainline in revision 3128.
  • Revision ID: abentley@panoramicfeedback.com-20071217192120-tpicwyj0qvvrjugp
Require the user to upgrade if they run split in a non-rich-root tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        wt.commit('added files')
43
43
        self.run_bzr_error(('must upgrade your branch at .*a',), 'split a/b')
44
44
 
 
45
    def test_split_tree_failure(self):
 
46
        tree = self.make_branch_and_tree('tree', format='pack-0.92')
 
47
        self.build_tree(['tree/subtree/'])
 
48
        tree.add('subtree')
 
49
        tree.commit('added subtree')
 
50
        self.run_bzr_error(('must upgrade your branch at .*tree',),
 
51
                           'split tree/subtree')
 
52
 
45
53
    def split_formats(self, format, repo_format):
46
54
        tree = self.make_branch_and_tree('rich-root', format=format)
47
55
        self.build_tree(['rich-root/a/'])