merge script: handle many-way octopus