I accidentally deleted several files that I didn’t mean with "hg cleanup". Is there any way to undo this?
There is no way to cancel the cleaning. It deletes files that were not tracked by Mercurial, so Mercurial cannot help you get them back.