292
310
revision_id='wrong-first-parent')
293
311
rev.parent_ids = ['1', '2']
294
312
repo.add_revision('wrong-first-parent', rev)
296
316
# now setup the wrong-secondary parent case
298
320
inv = Inventory(revision_id='wrong-secondary-parent')
299
321
inv.root.revision = 'wrong-secondary-parent'
300
322
sha1 = repo.add_inventory('wrong-secondary-parent', inv, ['1', '3', '2'])