I have my GWT project set up with hg for version control, and want to exclude the generated files in the war/modulename folder entirely.
I would prefer not to have to use an –exclude switch with every command. Is there a preferences file I can use to regularly exclude the directory?
Use .hgignore file. Basically, you can create a .hgignore file in the directory or repo
Please look at the following SO discussion. It answers most of what you need.
A typical file can contain both types of syntax.
As an example, the following ignores the files created during merge