403
404
must_fetch.add(self.source_branch_stop_revision_id)
404
405
heads_to_fetch.update(must_fetch)
407
408
if self.target_repo_kind == TargetRepoKinds.EMPTY:
408
409
# PendingAncestryResult does not raise errors if a requested head
409
410
# is absent. Ideally it would support the
410
411
# required_ids/if_present_ids distinction, but in practice
411
412
# heads_to_fetch will almost certainly be present so this doesn't
414
415
return graph.PendingAncestryResult(all_heads, self.source_repo)
415
416
return graph.NotInOtherForRevs(self.target_repo, self.source_repo,