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()
725
self.assertEqual([], list(tree2._iter_changes(tree1)))
726
subtree1.commit('commit', rev_id='commit-a')
734
('directory', 'directory'),
740
('root-id', 'root-id'),
742
('tree-reference', 'tree-reference'),
744
list(tree2._iter_changes(tree1,
745
include_unchanged=True)))
726
self.addCleanup(tree2.unlock)
727
self.assertEqual([], list(tree2._iter_changes(tree1)))
728
subtree1.commit('commit', rev_id='commit-a')
736
('directory', 'directory'),
742
('root-id', 'root-id'),
744
('tree-reference', 'tree-reference'),
746
list(tree2._iter_changes(tree1,
747
include_unchanged=True)))
750
749
def test_default_ignores_unversioned_files(self):
751
750
tree1 = self.make_branch_and_tree('tree1')