767
767
expected = sorted(self.content_changed(tree2, f_id) for f_id in path_ids
768
768
if f_id.endswith('_f-id'))
769
769
self.assertEqual(expected, self.do_iter_changes(tree1, tree2))
771
def test_trees_with_unknown(self):
772
tree1 = self.make_branch_and_tree('tree1')
773
tree2 = self.make_to_branch_and_tree('tree2')
774
self.build_tree(['tree1/a', 'tree1/c',
775
'tree2/a', 'tree2/b', 'tree2/c'])
776
tree1.add(['a', 'c'], ['a-id', 'c-id'])
777
tree2.add(['a', 'c'], ['a-id', 'c-id'])
779
tree1, tree2 = self.mutable_trees_to_test_trees(tree1, tree2)
781
self.addCleanup(tree1.unlock)
783
self.addCleanup(tree2.unlock)
785
# We should ignore the fact that 'b' exists in tree-2
787
self.content_changed(tree2, 'a-id'),
788
self.content_changed(tree2, 'c-id'),
790
self.assertEqual(expected, self.do_iter_changes(tree1, tree2))