283
284
"""See MutableTree.set_parent_trees()."""
284
285
if len(parents_list) == 0:
288
290
if parents_list[0][1] is None and not allow_leftmost_as_ghost:
289
291
# a ghost in the left most parent
290
292
raise errors.GhostRevisionUnusableHere(parents_list[0][0])
291
293
self._parent_ids = [parent_id for parent_id, tree in parents_list]
292
294
if parents_list[0][1] is None or parents_list[0][1] == 'null:':
295
298
self._basis_tree = parents_list[0][1]
296
299
self._branch_revision_id = parents_list[0][0]