Hi all,
I'm not expert using Sourcetree, even though it's almost an year that I use it for basic operations. Lately I noticed that every time I add new files in my project, they're not added to the verioning system and it took a while for me to understand why. I eventually found out that they are ignored, even though they shouldn't be because they're not listed in the .hgignore file (not even as a content of an ignored directory).
So far the solution is to manually check if the file have been ignored and then add them, but as it easy to imagine, it's not the most confortable situation. I'm always worried to forget something and lose some files.
Can someone try to explain me what's happening?
Thanks!
Hi Eugenio,
This may well be because you're looking at the wrong .hgignore. There's a global .hgignore file also. An easy way to look for all of your hgignore files is to call "locate .hgignore" at the terminal. You'll probably find one alled /Users/<username>/.hgignore_global. This may well have an ignore pattern in it which is causing those files to be ignored.
Cheers
Does a syntax defined in .hgignore_global carry over to .hgignore files? The default for .hgignore files is regexp, but I notice in my .hg_ignore file that the syntax is defined as glob.
I assume that the syntax reverts when a new .hgignore file is encountered.
(I assume that some upgrade created the !/.hgignore_global file.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you confirm that your .hgignore does not have a regex that ignores files?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Timothy, thanks for your help, but that wasn't the case.
Kieran, you were right! I knew we had a global ignore file somewhere, but I always thought it was server-side. Editing it solved everything. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.