349
349
"""Test adding the first parent id - as a ghost"""
350
350
tree = self.make_branch_and_tree('.')
351
351
self.assertRaises(errors.GhostRevisionUnusableHere,
354
354
def test_add_first_parent_tree_ghost_force(self):
355
355
"""Test adding the first parent id - as a ghost"""
356
356
tree = self.make_branch_and_tree('.')
359
359
allow_leftmost_as_ghost=True)
360
360
except errors.GhostRevisionUnusableHere:
361
361
self.assertFalse(tree._format.supports_leftmost_parent_id_as_ghost)
363
363
self.assertTrue(tree._format.supports_leftmost_parent_id_as_ghost)
366
366
def test_add_second_parent_tree(self):
367
367
"""Test adding the second parent id"""