Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reconnecting a project to SVN in Eclipse

Tags:

eclipse

svn

I have a project that has been versioned by SVN for months, but now all of a sudden it seems that Eclipse does not recognize the project as being under version control. In the team menu, I only have Apply Patch... and Share Project...

I tried Share Project as suggested elsewhere, but Eclipse doesn't recognize the project as being under version control.

All the svn dirs exist.

Interestingly, I tried sharing the project to a different repository and I got an error saying that the project was already a working copy for another URL.

Any ideas?

like image 670
James Harpe Avatar asked Jan 30 '13 14:01

James Harpe


2 Answers

There are a few things that you can try.

  • If the project is in synch with SVN, probably the easiest way is to delete it and check it out anew.
  • Otherwise, you can try to delete the project from your workspace (not from disk!) and to re-import it into the workspace.
  • If that does not work, you can try to use the SVN command line tools, e.g. svn commit, to synchronize your local project with the SVN repository (and check it out anew using Eclipse).
  • In case the SVN command line tools do not work, there might to be an actual problem with the SVN files. In this case, you could back up your project (with unsynched changes), check out the project from SVN, and use an offline-diff-tool such as diff or meld to carry the changes over to the newly checked-out project.
like image 62
tobias_k Avatar answered Oct 07 '22 14:10

tobias_k


Try following: Rigth click -> Team->'share projectS' (plural, in singular does not work) in your disconnected project

I cannot reproduce it now in my PC but there appears a option to reconnect to svn -or to connect using svn information that exists in project-. (Just do as you were going to put a new project in svn, it will see the svn info and will asks you to use it)

I hate that problems....

like image 26
inigoD Avatar answered Oct 07 '22 15:10

inigoD