242
242
graph = self.source.get_graph()
243
243
parent_map = graph.get_parent_map(revs)
245
244
rev_order = topo_sort(parent_map)
246
245
rev_id_to_root_id, root_id_to_rev_ids = self._find_root_ids(
250
247
root_id_order = [(rev_id_to_root_id[rev_id], rev_id) for rev_id in
252
249
# Guaranteed stable, this groups all the file id operations together