Improve the heuristic to detect mixed-rev branch copies
Make it correctly handle split commits instead of using the from-rev of nodes changing other branches. Also refuse to make a link if there were copies from multiple branches, but print a warning instead to help manual checking.