~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree_4.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-20 12:19:56 UTC
  • mfrom: (1551.15.7 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070420121956-hbxbonnuyt92yy4u
new formats are network-compatible with old clients (#107168)

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