768
768
version_ids = set(other.versions()).intersection(set(version_ids))
769
769
# pull in the referenced graph.
770
770
version_ids = other.get_ancestry(version_ids)
773
776
for name in topo_sort(pending_graph):
774
777
other_idx = other._name_map[name]
775
778
# returns True if we have it, False if we need it.