merge-base --octopus: reduce the result from get_octopus_merge_bases()