54

I have a PHP project set up in Eclipse with SVN support. Now, Eclipse adds its project files .buildpath and .project to the project and Subclipse wants to add it to the repository.

Now I could just use svn:ignore to let SVN ignore the files, but that's not an option for various reasons. So, is there a way to make Eclipse and Subclipse ignore the files (which it should anyway)?

Franz
  • 11,353
  • 8
  • 48
  • 70

6 Answers6

102

Preferences > Team > Ignored Resources

Jorgesys
  • 124,308
  • 23
  • 334
  • 268
JW.
  • 50,691
  • 36
  • 115
  • 143
  • 1
    In Eclipse Indigo it is a bit different. Properties > SVN Info > Right click in field with list of keywords > Add > Name will be svn:ignore, Property will be list of ignored files e.g. .project But this answer guided me in right direction, so thanks. – Viliam Aug 14 '13 at 07:54
  • 1
    The OP was looking for something that didn't use svn:ignore. But that's generally a better way to make sure they're not committed by anyone. – JW. Aug 14 '13 at 15:10
  • 5
    @JW. solution works perfectly. I added the following patterns: `.classpath .project .settings */.settings/* */target */target/*` – txedo Jul 14 '15 at 13:23
5

Can you use global-ignores? If yes, customize it in your config file:

  • On Windows: C:\Documents and Settings\%USERID%\Application Data\Subversion\config
  • On Linux: ~/.subversion/config
Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
4

If you want to ignore folders in the eclipse ignored resources, the pattern is */.settings/* for the .settings folder for example

David M. Coe
  • 309
  • 1
  • 6
  • 14
1

If you right click on the folder in eclipse, and select Show Properties... you can add the svn:ignore right there and have it cascade down to every folder if you choose.

You could the following as a template:

svn:ignore

.settings
.project
.classpath
target
Yannick Blondeau
  • 9,465
  • 8
  • 52
  • 74
Vehemon
  • 41
  • 1
  • 4
1

Can you just uncheck the box for "Show unversioned files" in the commit window?

davethegr8
  • 11,323
  • 5
  • 36
  • 61
0

if above answer (tortoise) has no option for commit window directly then

  1. go in tortoise setting -->context menu --> check the click on hide Menus for the unversioned path
jaskirat Singh
  • 696
  • 1
  • 8
  • 17