You wrote:
"M src/project.xml"
which means that src/project.xml
is under version control.
A file already under version control cannot be ignored! The
.hgignore
file is for ignoring files that are untracked (status
will show a "?").
You have two solutions to ignore your file:
- You can either "
hg forget
" the file, the opposite of "hg add
" (i.e., telling Mercurial not to track this file anymore), or You can use the ”
-X
” option as a default forstatus/diff/commit
in your.hg/hgrc
configuration file, e.g.,[defaults]
status = -X<file>
diff = -X<file>
commit = -X<file>
which will tell hg not to include this file in the use of status, diff, and commit.