Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 965
Edd Avatar asked Sep 17 '12 16:09

Edd


People also ask

Why can't I add files to SVN ignore using Subclipse?

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.

How do I use SVN via Eclipse?

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.

How to avoid certain files when sharing a project in SVN?

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.

How do I ignore a file in Eclipse?

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.


1 Answers

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.

like image 65
Mark Phippard Avatar answered Sep 25 '22 13:09

Mark Phippard