61
61
base_tree, sub_tree = self.make_trees()
62
62
assert base_tree.get_root_id() != sub_tree.get_root_id()
63
63
sub_root_id = sub_tree.get_root_id()
64
68
base_tree.subsume(sub_tree)
65
69
self.assertEqual(['tree-1', 'subtree-1'], base_tree.get_parent_ids())
66
70
self.assertEqual(sub_root_id, base_tree.path2id('subtree'))
67
71
self.assertEqual('file2-id', base_tree.path2id('subtree/file2'))
69
72
# subsuming the tree removes the control directory, so you can't open
74
74
self.failIfExists('tree/subtree/.bzr')
75
75
file2 = open('tree/subtree/file2', 'rb')