214
214
wt = self.make_branch_and_tree('.')
215
215
wt.set_parent_ids(['non:existent@rev--ision--0--2'],
216
216
allow_leftmost_as_ghost=True)
217
219
rev_id = wt.commit('commit against a ghost first parent.')
218
220
rev = wt.branch.repository.get_revision(rev_id)
219
221
self.assertEqual(rev.parent_ids, ['non:existent@rev--ision--0--2'])