We should check whether `resolvedRev` is a rev that exists in the database already. (At the moment, obviously it will be, but in future that won't be the case.)

If the revision already exists in the database, we should not create a new revision, but just mark the others as deleted.