112
112
a.tags.set_tag('tag-2', 'z')
113
113
conflicts = a.tags.merge_to(b.tags)
114
self.assertEqual(list(conflicts), [('tag-2', 'z', 'y')])
114
self.assertEqual(conflicts, [('tag-2', 'z', 'y')])
115
115
self.assertEqual('y', b.tags.lookup_tag('tag-2'))
117
117
conflicts = a.tags.merge_to(b.tags, overwrite=True)
119
119
self.assertEqual('z', b.tags.lookup_tag('tag-2'))
122
122
class TestTagsInCheckouts(TestCaseWithTransport):
127
124
def test_update_tag_into_checkout(self):
128
125
# checkouts are directly connected to the tags of their master branch: