I have been looking for this for a while. It’s pretty simple. Let’s say you have project A, and want to ignore 2 folders: bin and output.
1. In your project folder, edit the file ‘.hgignore’, or create it if non-existing.
2. Add the following lines:
That’s it. You are all set.