Sadly there is no simple "undo" or "rollback" option. I don't backup the database all that often so if we wanted to do a rollback we'd lose a lot. We'll have to manually move everything back.
This stuff always tends to happen when there are too many people with too many rights.
When it comes to stuff like merges in the future, send me an IM/Email/PM...