294
282
second_revision = tree.commit('second post')
295
283
tree.add_parent_tree_id(first_revision)
296
284
self.assertConsistentParents([second_revision, first_revision], tree)
298
286
def test_add_second_parent_id_ghost(self):
299
287
"""Test adding the second parent id - as a ghost"""
300
288
tree = self.make_branch_and_tree('.')
301
289
first_revision = tree.commit('first post')
302
290
tree.add_parent_tree_id('second')
303
291
self.assertConsistentParents([first_revision, 'second'], tree)
305
293
def test_add_first_parent_tree(self):
306
294
"""Test adding the first parent id"""
307
295
tree = self.make_branch_and_tree('.')