~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/intertree_implementations/test_compare.py

[BROKEN] Many updates to stop using experimental formats in tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
719
719
        subtree2 = self.make_to_branch_and_tree('2/sub')
720
720
        subtree2.set_root_id('subtree-id')
721
721
        tree2.add_reference(subtree2)
 
722
        tree1, tree2 = self.mutable_trees_to_test_trees(tree1, tree2)
722
723
        tree1.lock_read()
 
724
        self.addCleanup(tree1.unlock)
723
725
        tree2.lock_read()
724
 
        try:
725
 
            self.assertEqual([], list(tree2._iter_changes(tree1)))
726
 
            subtree1.commit('commit', rev_id='commit-a')
727
 
            self.assertEqual([
728
 
                ('root-id',
729
 
                 (u'', u''),
730
 
                 False,
731
 
                 (True, True),
732
 
                 (None, None),
733
 
                 (u'', u''),
734
 
                 ('directory', 'directory'),
735
 
                 (False, False)),
736
 
                ('subtree-id',
737
 
                 ('sub', 'sub',),
738
 
                 False,
739
 
                 (True, True),
740
 
                 ('root-id', 'root-id'),
741
 
                 ('sub', 'sub'),
742
 
                 ('tree-reference', 'tree-reference'),
743
 
                 (False, False))],
744
 
                             list(tree2._iter_changes(tree1,
745
 
                                 include_unchanged=True)))
746
 
        finally:
747
 
            tree1.unlock()
748
 
            tree2.unlock()
 
726
        self.addCleanup(tree2.unlock)
 
727
        self.assertEqual([], list(tree2._iter_changes(tree1)))
 
728
        subtree1.commit('commit', rev_id='commit-a')
 
729
        self.assertEqual([
 
730
            ('root-id',
 
731
             (u'', u''),
 
732
             False,
 
733
             (True, True),
 
734
             (None, None),
 
735
             (u'', u''),
 
736
             ('directory', 'directory'),
 
737
             (False, False)),
 
738
            ('subtree-id',
 
739
             ('sub', 'sub',),
 
740
             False,
 
741
             (True, True),
 
742
             ('root-id', 'root-id'),
 
743
             ('sub', 'sub'),
 
744
             ('tree-reference', 'tree-reference'),
 
745
             (False, False))],
 
746
                         list(tree2._iter_changes(tree1,
 
747
                             include_unchanged=True)))
749
748
 
750
749
    def test_default_ignores_unversioned_files(self):
751
750
        tree1 = self.make_branch_and_tree('tree1')