193
193
tree.add_reference(sub_tree)
194
194
tree.commit('set text to 1')
195
195
tree2 = tree.bzrdir.sprout('tree2').open_workingtree()
196
197
self.build_tree_contents([('tree2/sub-tree/file', 'text2')])
197
200
tree2.commit('changed file text')
198
201
tree.merge_from_branch(tree2.branch)
199
202
self.assertFileEqual('text2', 'tree/sub-tree/file')