Based on the output of svn diff
that you received, you were actually setting svn:ignore
for the resource target
. This property information is saved on the parent versioned resource (in this case the project root .
) so that it can be committed to the repository independent of your local ignore settings.
Given this, is it safe to commit the property change? It depends on what impact you want to make. The documentation makes this note about the svn:ignore
property:
The svn:ignore property is a good way to tell Subversion to ignore files that are likely to be present in every user's working copy of that directory, such as compiler output...
So, by committing this change, you'd effective ignore the target
resource for anyone who pulled the project from the repository (provided it's currently unversioned). It's possible that this may not be the policy at your workplace though, so you may want to avoid this. To remove the property, you can take one of the following actions:
- Run
svn propdel svn:ignore .
from the command line
- In Eclipse (with Subclipse), right-click the project folder, go to Team -> Show Properties, select the
svn:ignore
property entry, right-click, and click Delete Property
This should get rid of the modification notice on the root directory. With respect to your previous question, the problem would have been more apparent had it not been for the fact that property changes show as normal outgoing changes in the Synchronization view. If you were to bring up the Commit dialog, you should actually see the distinct Property Change decorator.
Unfortunately, this leaves you with the target
resource unignored. To fix this in Eclipse, you can add target
to the list of ignored resources. To get to this option, go to Window -> Preferences -> Team -> Ignored Resources. You can then add "target" to the list of ignore patterns. If you wish to apply the ignore pattern to Subversion globally, you can modify the global-ignores
setting of your Subversion configuration file.
The problem with this approach is that it ignores the target
resource for all projects in the Eclipse workspace, or all Subversion actions across the system (depending on your ignore method of choice). At the moment, I can't think of a way to reverse this on a case-by-case basis.