~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree_4.py

Merge hpss-protocol2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    bzrdir,
24
24
    dirstate,
25
25
    errors,
 
26
    inventory,
26
27
    workingtree_4,
27
28
    )
28
29
from bzrlib.lockdir import LockDir
464
465
        wt.commit('again')
465
466
        validate()
466
467
 
 
468
    def test_default_root_id(self):
 
469
        tree = self.make_branch_and_tree('tag', format='dirstate-tags')
 
470
        self.assertEqual(inventory.ROOT_ID, tree.get_root_id())
 
471
        tree = self.make_branch_and_tree('subtree',
 
472
                                         format='dirstate-with-subtree')
 
473
        self.assertNotEqual(inventory.ROOT_ID, tree.get_root_id())
 
474
 
467
475
    def test_non_subtree_with_nested_trees(self):
468
476
        # prior to dirstate, st/diff/commit ignored nested trees.
469
477
        # dirstate, as opposed to dirstate-with-subtree, should