2 Answers
2

If you have not commited yet just use hg forget fileToForget or use Tortoise to remove the files.

If you have committed and you don't mind the files to be part of history, just forget them and commit again.

If you don't want them to be part of your repository history, and if commiting them is the very last operation you've made, you can try to rollback (use hg rollback or go in the recovery menu in Tortoise). You will have to forget the file and then commit again

If you're dealing with too many files, you can try to automate the task by getting a list of all added files, forgetting them, modify you .hgignore and do the addremove again.

Assuming there were no other changes besides the effects of the addremove.
–
EdwardFeb 18 '14 at 21:01

You're right - I assumed that 'addremove' was the only command you want to undo.
–
AlexFeb 19 '14 at 7:15

1

@Alex This can be dangerous as @Edward mentioned. Someone using this command will lose all workspace changes. hg forget is the right way to do this. Please see the answer from @CedricRup
–
bufferApr 10 '14 at 13:23