116
115
copy = tree.controldir.sprout('copyoftree').open_workingtree()
117
116
copy.commit(message='merged', rev_id=b'merged')
118
117
tree.merge_from_branch(copy.branch)
120
119
history.append(tree.commit('merge'))
123
121
self.assertEqual(history[2], tree.last_revision())
124
122
self.assertEqual((3, history[2]), tree.branch.last_revision_info())
125
123
tree.branch.tags.set_tag(u"pointsatexisting", history[1])