[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

TortoiseSVN Global Ignore Broken for Directories

From: Greg Neujahr <foxydoodle_at_yahoo.com>
Date: Sat, 3 Mar 2012 19:01:16 -0800 (PST)

(This is reposted from the #dev list where I accidentally posted it. I was directed here instead).

This is an issue with TortoiseSVN 1.7.5, build 22551 - 64 bit, running on Windows 7 Enterprise, x64.

I recently tried to commit a folder named Assets.o to my repository. When right clicking and adding, it only listed that folder for adding instead of its contents. This is usually indcative of an ignored folder. So I checked the svn-ignore property and it was undefined for this repository and any of the subsequent folders I was working in. Additionally, I checked the global SVN ignore entry and found '*.o', which matched my particular folder. I removed the entry, leaving my global ignore pattern as:

*.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store

When trying to right click and add this folder now, the dialog claims there is nothing to add, which is even less true than when it only wanted to add the folder itself and not the contents.

Additionally, it seems that even if I clear the entire string from the global ignore list, I'm not able to add folders with names that match any of the expressions within the list. And by 'clear', I used the GUI settings dialog to remove the entire global ignore pattern. I've also tried setting it to " " (a single space, without quotes), just in case it was defaulting due to a missing string.

I also checked the config file for tortoise and the line dealing with global ignores is commented with a single #, as this is the default file generated by tortoise and I have not edited it.

This only seems to impact folders that match the default global ignore string. I can commit and add files as one would expect (a file named test.o is added or flagged for addition when the global ignore pattern is missing the *.o pattern).

Any idea what I could be doing wrong here? My work around was to add the folder remotely to the repository, update, and then put the contents in the folder. However, this is less than ideal as I may actually want to create folders using these naming conventions. I'm also not sure that Tortoise will alert me to new files and changes to files in this "ignored" folder, which could be problematic.

To make a suggestion to the devs who may know the code, it would 'seem' that the default global ignore pattern from the settings dialog is always used for directories, even when it is altered by the user. Files behave properly, but folders seem to be a different beast here. But this is just my observation. I will look into the code myself when I have the time.

Thanks for any help you folks can provide me.

- Greg

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2930815

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-03-04 08:33:26 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.