299
300
for node, node_dec in descendants_b.iteritems():
300
301
if node not in descendants:
301
302
descendants[node] = set()
303
304
return root, ancestors, descendants, common
305
306
def common_ancestor(revision_a, revision_b, revision_source):
306
307
root, ancestors, descendants, common = \
307
308
combined_graph(revision_a, revision_b, revision_source)