eclipsesvnsubclipseignoresvnignore

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.


Solution

  • 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.

    UPDATE: When reverting files do not select files that are currently "unversioned". Reverting a file that is not versioned means Subclipse will delete the file. IF you ever accidentally delete something, note that Eclipse has a 'Restore from Local History' option. The items you removed will typically still be available in Local History.