Accidentally, by using a GUI as opposed to CLI, I removed every file in a Mercurial project.
I recovered with Revert ok and lost some work, which as I have time mach
The following worked for me.
hg revert -r
(Optional, to revert all files)
hg revert -r --all