Merge all duplicates

Is there a command to merge all duplicate photos? (in brief – I imported twice - one set has the metadata and the other has the images, so want to merge them).

I’m afraid, no, there’s no automatic way to do this currently.