Tuesday, January 29, 2013

Subclipse svn:ignore

You can't svn:ignore a file that is already commited to repository.
So you must:
  1. Delete it from the repository
  2. Recreate it in Eclipse
  3. Set svn:ignore on it via Team->Add to svn:ignore
the parent folder has to be already in svn to be able to set the svn:ignore property

Add to svn:ignore greyed out in subclipse

 

I have some files which I can't add to svn:ignore using subclipse and I don't know why.
enter image description here
The usual reasons for not being able to add files to svn:ignore seem to be that the file is already in the repository or that the folder the file is in hasn't been created yet. Neither of these seem to apply here so I don't know what the cause is.

The file has clearly been added to version control. If this were the command line, then someone would have executed svn add but not yet committed the change. So the file is currently in the "scheduled-add" state. If you want to ignore the file, then first do Team > Revert to remove the scheduled add state. You will then be able to add it to svn:ignore for the parent.

******I performed a Revert on the files and the '+' on each of the icons changed to a '?' and I was then able to add to svn:ignore

 

No comments: