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)
723
722
tree1, tree2 = self.mutable_trees_to_test_trees(tree1, tree2)
725
723
tree1.lock_read()
724
self.addCleanup(tree1.unlock)
726
725
tree2.lock_read()
728
self.assertEqual([], list(tree2._iter_changes(tree1)))
729
subtree1.commit('commit', rev_id='commit-a')
737
('directory', 'directory'),
743
('root-id', 'root-id'),
745
('tree-reference', 'tree-reference'),
747
list(tree2._iter_changes(tree1,
748
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)))
753
749
def test_default_ignores_unversioned_files(self):
754
750
tree1 = self.make_branch_and_tree('tree1')