I have some files which I can't add to svn:ignore using subclipse and I don't know why.
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.
Bookmark this question. Show activity on this post. I have some files which I can't add to svn:ignore using subclipse and I don't know why. 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.
This guide shows you how to use SVN via Eclipse using the Subclipse plugin (like, for example, when you test your code remotely on the lab computers). You will need to install the Subclipse plugin to connect your code in Eclipse to your SVN repository. In Eclipse, go to "Help » Install New Software..." from the toolbar.
If you are trying to share a project in SVN with Eclipse for the first time, you might want to avoid certain files to be commited. In order to do so, go to Preferences->Team->Ignored Resources. In this screen you just need to add a pattern to ignore the kind of files you don't want to commit. Show activity on this post.
Set svn:ignore on the file via Team->Add to svn:ignore. Restart eclipse to reflect changes. Good luck! Show activity on this post. I was able to do this using TortoiseSVN directly from Windows explorer: Right click on file to ignore-> TortiseSVN -> Delete and add to ignore list Show activity on this post.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With