Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Associating existing Eclipse project with existing SVN repository

I have an eclipse project on my hard disk, which is a fairly recent check out from an SVN repository. I've imported this project into my Eclipse workspace, and now want to associate it with the SVN repository.

How do I do this? The only options I seem to have under Right-click -> Team is "Share Project", which only seems to allow me to do an initial import.

Edit: Motivation - It's a largish repository, and I don't really want to have to import the whole thing over the network.

Edit 2: There are (for some reason) no .svn dirs in the project. So maybe a fresh import from svn is the only option

like image 525
Richard H Avatar asked Feb 16 '10 14:02

Richard H


People also ask

How do I add an existing project to a SVN repository?

Open your project folder. You will see question marks on folders that are associated with your VS project that have not yet been added to Subversion. Select those folders using Ctrl + Click, then right-click one of the selected items and select TortoiseSVN > Add. Select OK on the prompt.

What is synchronize with repository SVN eclipse?

Synchronize with Repository is something similar to svn status -u , but even more. It will open a Synchronize tab (or perspective) that displays overview of your local (outgoing) modifications versus repository (incoming) modifications.


2 Answers

Team->Share project is exactly what you need to do. Select SVN from the list, then click "Next". Subclipse will notice the presence of .svn directories that will ask you to confirm that the information is correct, and associate the project with subclipse.

like image 129
amarillion Avatar answered Oct 14 '22 10:10

amarillion


I just wanted to add that if you don't see Team -> Share project, it's likely you have to remove the project from the workspace before importing it back in. This is what happened to me, and I had to remove and readd it to the workspace for it to fix itself. (This happened when moving from dramatically different Eclipse versions + plugins using the same workspace.)

subclipse not showing "share project" option on project context menu in eclipse

like image 35
Marcus Avatar answered Oct 14 '22 10:10

Marcus