343
341
"""Compute the merge sorted graph output."""
345
343
as_parent_map = dict((node.key, node.parent_keys)
348
346
# We intentionally always generate revnos and never force the
350
348
# Strip the sequence_number that merge_sort generates
351
349
return [_MergeSortNode(key, merge_depth, revno, end_of_merge)
352
350
for _, key, merge_depth, revno, end_of_merge
357
355
def get_parent_keys(self, key):
358
356
"""Get the parents for a key
360
358
Returns a list containg the parents keys. If the key is a ghost,
361
359
None is returned. A KeyError will be raised if the key is not in
364
362
:param keys: Key to check (eg revision_id)
365
363
:return: A list of parents