I have added locations into Eclipse so I can, say, create projects from SVN locations.
I am no longer using one of the SVN locations, but it still comes up in the list that appears when I go to Team > Create project from SVN location.
How can I remove this SVN location from the list, using Subclipse?
Window -> show view -> Other... -> SVN repositories
lists the available repositories and lets you delete the one you don't want any more.
Follow these steps:
Goto "SVN Repositories Exploring"
perspective.
You will get "SVN repositories" view.
"SVN repositories" view shows list of
locations.
You can right click on location and
select "Discard Location" menu.
Hope this helps.
I had to disconnect the local project first, before I was able to discard the svn location using Spring Tool Suite 2.9.2.
So I closed out the project,
went to the svn repository perspective,
discarded the location,
then I reopened the project.
Open your SVN repository exploring, then right click on the location that you want to remove and click Discard Location
NB. before doing that, disconnect all projects that are connected to this repository location.
To disconnect a project from SVN repository follow this:
Right click on the connected project -> Team -> Disconnect...
If are you looking for how to remove/clear the unused Urls from the "Add SVN Repository" dialog, the way "under the hood" is to edit/delete the file located under <Eclipse Workspace Location>\.metadata\.plugins\org.tigris.subversion.subclipse.ui\dialog_settings.xml
Be careful not to deleting the project when removing a repository location, the plugin developers where not smart enough to advidce clearly that the project is delected
Related
I have a project say Project in my eclipse workspace which I commit on an svn repository. When I make some changes in my local copy, I can easily integrate those changes with the project->right click -> team -> synchronize with the repository option. But in case I have another project name Project (same name for both projects) in another workspace say workspace2 which is not connected to svn and I want to synchronize it with the same project on svn repository How should I do it? Because the only choice in this case is project->right click->team -> share project or apply patch. To share this project I will have to commit it but in this case the contents of the project already available on svn repository will be lost. I want to merge the two projects such that the useful content of both is merged and the merged copy is available on the svn repository. Any help will be highly appreciated. Thanks in advance.
SVN can't automatically merge a SVN project with one that wasn't originally checked out from SVN. To merge two branches of a project, SVN needs to know which branch each change was made on. Otherwise it will just see the differences between the two sides, but won't have any way to know which side to keep. It can only do this if it has the history of each side's changes, which in this case you don't have.
What I would do is just diff the two projects, look at each change yourself, and decide whether to copy it into the SVN project. Start by backing up the non-SVN project, and committing any changes to the SVN project, so you have a clean place to revert to if you mess up. Then select both projects and do Compare With > Each Other. It will show you all the files that are different. Double-click each file to see the differences within the file, and copy them to the SVN side if you want to keep them. Then if everything looks good, you can commit it, and get rid of the non-SVN version.
I want to use TortoiseSVN together with Eclipse.
For now I just want to try it out.
So I use a local folder as repository.
I have installed TortoiseSVN 1.7.13.
I created a folder called 'REPOSITORY' and chose 'Create repository here' from
the context menu.
As other websites told, I installed Subclipse 1.8.22 in Eclipse.
I use the SVNKit1.7.9 as client or connector (Whatever it is called).
I had already some projects in eclipse's workspace.
From the context menu I chose 'Team->Share Project'.
That is what other websites told to do.
It did show the normal commit dialog and so on.
The projects are marked as commited but the folder 'REPOSITORY'
is still small in size.
It seems, that the projects where not copied or moved to the repository.
At work we have a server based SVN. I just want to have something like that at home.
Did I miss something?
Isn't it the purpose of the SVN repository to hold a copy of the projects?
So the commited projects should be inside the REPOSITORY, right?
Greetings
Mike
Apparently, you have to manually import the project in Eclipse into the repository created with TortoiseSVN before actually committing to it.
This other page might help you. It gives a very detailed walkthrough of how to set up exactly the kind of local system you want. In essence:
In Eclipse, delete the project but not its contents (Delete project contents on disk unchecked). This will leave the project's folder under your workspace location untouched.
Outside Eclipse, import the project folder into the repository previously created with TortoiseSVN (Right click on folder > TortoiseSVN > Import and select the URL of the repository). Once imported, you may wish to delete the project folder.
Back in Eclipse, checkout the project from TortoiseSVN's repository (e.g. Right click on Package Explorer > Import.. > SVN > Projects from SVN).
Hope that helps.
If your project's folder structure and package structure are the same, you can use Eclipse Subversive. It's just a plugin for eclipse and provides all features of TortoiseSVN
Is it possible to put Eclipse GWT project under EGit?
If I select an option "Use or create repository in parent folder of a project", Eclipse says "Creation of repositories in the Eclipse workspace is not recommended" and does not allow me to go further.
If I deselect this option, it moves the project files into a separate folder of Git repository and breaks the classpath. For example, Web App Libraries entry remains pointing to the old place and does not fix it upon recreate.
Trap! How to get out?
When it shows that warning, you need to hit the "Create Repository" button at the bottom of the dialog. That will allow you to select your project as your repo and use Finish.
See EGit User Guide/Repos for a discussion on why it's better to have an external repo.
PW
You have to select project folder in the project view, then right click 'Team>Add'. 'Team>Add to index' in newer eclipse versions. Make a commit and the Web App Libraries fixes itself.
I have imported project with Maven. But Subclipse didn't recognize that project already in SVN (I don't see pictogram barrel). For team in context menu I see 2 options:
Apply path
Share project
Which one I must select? In SVN repository there is already project made by other persons.
And I also made checkout by Tortoise. So I need only to recognize SVN local repository by STS.
Sharing the project should make it detect that .svn directories already exist, and should propose you to keep these files and use the information they contain to establish the SVN configuration of the project.
svn is a versionmanagement system. if you got old code and someone released a newer version you can apply a patch. you can share your project on cvs svn and git. like github or google project.
you need to go to new svn repoository and select the one of your project. then you can checkout project as new project. maven is for dependencies, not for code manipulation
I just started using SVN, and I set up a repository, because everyone were saying that version control is important and having backup.
Now I had to make a first commit of my project, and I'm new to SVN, so it asked the URL and I gave it the url for my SVN+Project name, which is http://lalala.com/<MyProjectName>.
I thought this will be good, but then I discovered that my project was stored on the root folder in SVN, next to trunk branches tags etc.
But actually when I commit my project I want it to go directly to my trunk folder. So two questions...
1)How can I change the SVN address for my project in Eclipse Subversive?
2)How would I delete the folder that is on the root folder of SVN, should I just manually delete it?
1) If the special folders do not exist, use the SVN perspective to create them. Add your project root folder directly under trunk. Use Checkout As Project in the context menu in the SVN perspective. You may use Show Location Properties in the context menu to alter the URL.
2) Just delete the folder and commit
Good luck!