views:

640

answers:

4

I'm using the TortoiseSVN client and Eclipse. When I attempt to commit a Eclipse project TortoiseSVN displays a .settings directory in the file list and says that it is un-versioned. The `.settings' directory seems to be where Eclipse keeps all of it's settings for a project.

Is there a way to exclude this directory so that it is completely ignored by TortoiseSVN for this and any other Eclipse projects.

A: 

You can specify resources to ignore under Window -> Preferences -> Team -> Ignored resources.

Superfilin
A: 

If you're using Eclipse you might want to try out subClipse, it's a free subversion plugin for eclipse and it will allow you to exclude the .setings folder. See this link.

However, are you sure you don't want these to be comitted? Since your project is build in Eclipse, one could say that the setings are a part of your project.

Personally I like to commit these files as they allow me to keep the same settings for every project on every location and for every developer.

Tom
Well due to the nature of SVN and it's ability to allow multiple people to work on a single project, committing a single users Eclipse `.settings` directory would break other users Eclipse configuration when they do an update.
Camsoft
It will make sure that they are working in the same environment. It does not break their Eclipse configuration as it is set for each project. It depends on what you want as I said in my answer.
Tom
+2  A: 

You can exclude directories like this by right clicking on them in Windows and going to "Delete and add to ignore list" and then specifying it in the sub-menu. This is really easy to do, I have to do it quite often.

Kezzer
Does this actually delete the local directory?
Camsoft
No, it doesn't. It deletes it from svn, not from the file system.
Kezzer
+1  A: 
Michael Hackner
Thanks. Spot on!
Camsoft