265
290
second_revision = tree.commit('second post')
266
291
tree.add_parent_tree_id(first_revision)
267
292
self.assertConsistentParents([second_revision, first_revision], tree)
269
294
def test_add_second_parent_id_ghost(self):
270
295
"""Test adding the second parent id - as a ghost"""
271
296
tree = self.make_branch_and_tree('.')
272
297
first_revision = tree.commit('first post')
273
298
tree.add_parent_tree_id('second')
274
299
self.assertConsistentParents([first_revision, 'second'], tree)
276
301
def test_add_first_parent_tree(self):
277
302
"""Test adding the first parent id"""
278
303
tree = self.make_branch_and_tree('.')