~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree_4.py

Add simple test for WorkingTree.kind

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
 
437
437
    def test_unique_root_id_per_tree(self):
438
438
        # each time you initialize a new tree, it gets a different root id
439
 
        format_name = 'dirstate-with-subtree'
 
439
        format_name = 'experimental-reference-dirstate'
440
440
        tree1 = self.make_branch_and_tree('tree1',
441
441
            format=format_name)
442
442
        tree2 = self.make_branch_and_tree('tree2',
449
449
 
450
450
    def test_unique_root_id_per_tree(self):
451
451
        # each time you initialize a new tree, it gets a different root id
452
 
        format_name = 'dirstate-with-subtree'
453
 
        tree1 = self.make_branch_and_tree('tree1',
454
 
            format=format_name)
455
 
        tree2 = self.make_branch_and_tree('tree2',
456
 
            format=format_name)
 
452
        ## format_name = 'experimental-reference-dirstate'
 
453
        tree1 = self.make_branch_and_tree('tree1')
 
454
        tree2 = self.make_branch_and_tree('tree2')
457
455
        self.assertNotEqual(tree1.get_root_id(), tree2.get_root_id())
458
456
        # when you branch, it inherits the same root id
459
457
        rev1 = tree1.commit('first post')