Local hgignore not working
I'm trying to stop tracking changes in a subdirectory, so I followed the instructions below and added the following to. \ hg \ hgrc:
[ui]
ignore = "C:\[...\myrepo]\.hg\.hgignore"
where this .hgignore contains
syntax: glob
[subdir]/**
But when I run hg status
I get the following error:
skipping unreadable ignore file 'C:\[...\myrepo]\.hg\.hgignore"': invalid mode ('r') or filename
What does this error mean? And how can I fix this?
+3
Arithmomaniac
source
to share
2 answers
FWIW. The instructions say to create the file ".hg / hgignore", not ".hg / .hgignore".
Are you sure you are consistently using .hgignore vs. hgignore? If I use either sequentially, but it works correctly, but if they are incompatible, I see an error message.
+2
John Jefferies
source
to share
I got this error after installing SourceTree. I removed
[ui]
ignore=
from the mercurial.ini file in my home directory (C: \ Users \ myusername) and that fixed it.
+6
W. Elbashier
source
to share