问题
I have a folder on the C drive which is already checked out from SVN. In somewhere in that folder, I have an Eclipse project folder. It is already in the SVN repository.
I started Eclipse, imported that project, but I am not sure how to connect it to SVN. When I was working on a CVS repository, Eclipse CVS discovered its setting when I tried to share it. How can I do this with Subversion?
回答1:
This is how it's done with Subclipse. If I remember correctly, the process is similar in Subversive because they both use the Team API.
Right-click on the project, select Team -> Share Project...
Then select SVN as the SCM provider, then follow the wizard to completion.
According to this installation guide, Subversion does follow the same approach. If you haven't already set up your Subversion repository, the Wizard will prompt you to do so as in the screenshot below. The settings are the same as you would ordinarily use to connect to Subversion.
Share project wizard screenshot http://wiki.webratio.com/images/0/01/SpecifyRepository.png
回答2:
Right click on the project name to bring up the context menu. Select Team -> Share Project...
See here in the Subversive FAQ.
来源:https://stackoverflow.com/questions/1265549/import-an-existing-svn-project-into-eclipse