简体   繁体   中英

How to change port in svn repository in subclipse?

I have an SVN repository location via svn+ssh protocol in eclipse Indigo with Subclipse 1.8 on a Kubuntu 12.10.

Now, in order to access this outside our network, I need to go via another port. It worked with the previously used Subversive Plugin by editing the repository location and enter the new port number. But I don't see such a thing in Subclipse.

I tried the relocate option and entered the port in the url after the host in the common host:port format, which seemed to be fine at first, since it triggered again the authentication popup and within that had the port set correctly. But after confirming, the relocation didn't finish and eclipse had to be killed.

Can someone tell me what to do? And if there is really no option for that in Subclipse, maybe through some OS mechanism?

PS: I had to change the eclipse plugin since svn was updated to 1.7 and Subversive does not provide a connector for it within the Indigo release.

The port is part of the Subversion server URL. If you need to change the URL of the server in Subclipse, then the way to do it is with the Relocate option. This has to run through all of the working copies that are linked to that server and run the svn relocate API so that the working copies are pointing at the new server URL.

You do not mention what OS you are using, or whether you are using SVNKit or JavaHL. This matters because it will also determine how SSH is managed. Eclipse may have been hung up because a command line SSH tool was being spawned and there was no Terminal to provide answers to the prompts it wanted to provide. If you are using OpenSSH, then as long as you are running something like ssh-agent to manage your keys, you can avoid this. If you use SVNKit, then it provides a Java-based SSH client that will provide GUI prompts within Eclipse.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM