Possible Duplicate:
Mercurial: How to ignore changes to a tracked file
I work on a team that uses Mercurial and we have a config file that is checked in and is stable.
Being that it’s a config file, some team members need to make changes to it to have the software work on their machine but I want to prevent those changes from making it into the repository on checkin.
How can I do this?
I want the default config file to be in the repository and user made changes to be ignored on commit.
The general pattern is to remove the
configfile from the repository and add it to.hgignore, and instead to provide aconfig.examplefile which users have to copy toconfigand customize. This copying can be done by the build script if you want to keep project set-up as simple as possible.See also the links posted by kostja.