522
522
# This asks for all mainline revisions, which means we only have to spider
523
523
# sideways, rather than depth history. That said, its still size-of-history
524
524
# and should be addressed.
525
527
parent_map = dict(((key, value) for key, value in
527
529
# filter out ghosts; merge_sort errors on ghosts.
528
530
rev_graph = _strip_NULL_ghosts(parent_map)
529
531
merge_sorted_revisions = merge_sort(