This reverts commit 5d4aeae9bf.
5d4aeae9bf
[ci skip]
In this case comparing old_path and new_path is not enough because there are two entires that match.