Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to add file or folder to svn:ignore [closed]

Tags:

eclipse

svn

I have some files and folders that i am unable to add to ignore because the option is disabled. Why is this so?

enter image description here

like image 335
Oh Chin Boon Avatar asked May 20 '13 09:05

Oh Chin Boon


People also ask

How do I ignore target folder in svn?

To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .


3 Answers

The problem is that the folder is already under version control.

Here's how I fix this type of problem when it comes up:

  1. In your local shell, make a copy of the .settings folder
  2. Bring up the "SVN Repositories" view in Eclipse
  3. Navigate to within the project on the server (e.g. /trunk/cboon/Project1/)
  4. Right-click the .settings directory there and delete it
  5. Now locally, update the project. If it feels that .settings is in conflict, accept the incoming change.
  6. Copy your local back-up of .settings back into place and refresh. It should now have a '?' badge, indicating that it's not under control
  7. Now you can svn:ignore it
like image 99
Nathaniel Waisbrot Avatar answered Sep 28 '22 07:09

Nathaniel Waisbrot


Most likely, the file has already been added to the ignore list (svn:ignore), has also been added to the repository, and now contains some changes. The ignore list is only used for unversioned files. However, if the file is already in the repository, it has no effect.

Solve the problem by removing the file from the repository, without removing it from your working copy, e.g. svn rm --keep-local .settings.

like image 31
nosid Avatar answered Sep 28 '22 07:09

nosid


"You can use svn:ignore property only for unversioned resources, if resource is versioned then "Add to svn:ignore" menu is disabled. In order to add resource to ignored, select unversioned resource which you want to ignore, right click and call Team/Add to svn:ignore, then select ignore method."

Taken from discussion here.

like image 28
davmos Avatar answered Sep 28 '22 07:09

davmos