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