Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local hgignore not working

Tags:

mercurial

I'm trying to stop tracking changes to a subdirectory, so I followed these instructions and added the following to .\hg\hgrc:

[ui]
ignore = "C:\[...\myrepo]\.hg\.hgignore"

where that .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 it?

like image 351
Arithmomaniac Avatar asked Dec 14 '22 19:12

Arithmomaniac


1 Answers

I got this error after I installed SourceTree. I removed

[ui]
 ignore= 

from the file mercurial.ini in my home directory (C:\Users\myusername) and that fixed it.

like image 56
W. Elbashier Avatar answered Feb 12 '23 06:02

W. Elbashier