Mercurial: How to ignore changes to a tracked file
Posted
by Svish
on Stack Overflow
See other posts from Stack Overflow
or by Svish
Published on 2010-05-18T11:03:09Z
Indexed on
2010/05/18
11:21 UTC
Read the original article
Hit count: 231
I have a file with database settings in my project which I have set to some defaults. The file is tracked by mercurial and checked in. Since this file will be edited with different values various developer machines, is there a way I can tell Mercurial to ignore new changes to this file?
I tried adding the file to the .hgignore file, but since the file is tracked it isn't ignored. This is alright and good in other situations, but I am wondering if there is something I can do here.
© Stack Overflow or respective owner