更改SVN存储库URL [英] Change SVN repository URL
问题描述
我当前的SVN结构:
Path: .
URL: svn://someaddress.com.tr/project
Repository Root: svn://someaddress.com.tr
Repository UUID: -------------------------------------
Revision: 10297
Node Kind: directory
Schedule: normal
Last Changed Author: ----
Last Changed Rev: 9812
Last Changed Date: 2010-12-20 17:38:48 +0100 (Mon, 20 Dec 2010)
但是我们的项目(因此SVN服务)将在sub.someaddress.com.tr
而不是someaddress.com.tr
上运行(someaddress.com.tr将很快重定向到其他地方).
But our project (hence the SVN service) will work over sub.someaddress.com.tr
instead of someaddress.com.tr
(someaddress.com.tr will be redirected to somewhere else soon).
由于它是开发服务器,所以我不确定该怎么做.我是否需要使用svn switch
或svn switch --relocate
?另外,我是否需要切换svn根 someaddress.com.tr 或项目分支 someaddress.com.tr/project ?
Since it is the development server, I could not be sure about what to do. Will I need to use svn switch
or svn switch --relocate
? Also, will I need to switch svn root someaddress.com.tr or the project branch someaddress.com.tr/project?
推荐答案
鉴于Apache Subversion服务器将移至此新的DNS别名:sub.someaddress.com.tr
:
Given that the Apache Subversion server will be moved to this new DNS alias: sub.someaddress.com.tr
:
-
对于Subversion 1.7或更高版本,请使用switch仅在要将本地工作副本更改为另一个分支或另一个路径时使用.如果使用TortoiseSVN,则可以按照 TortoiseSVN手册中的说明进行操作.如果使用SVN命令行界面,请参考此SVN文档的一部分.该命令应如下所示:
With Subversion 1.7 or higher, use
svn relocate
. Relocate is used when the SVN server's location changes.switch
is only used if you want to change your local working copy to another branch or another path. If using TortoiseSVN, you may follow instructions from the TortoiseSVN Manual. If using the SVN command line interface, refer to this section of SVN's documentation. The command should look like this:
svn relocate svn://sub.someaddress.com.tr/project
请继续使用/project
,因为您存储库的实际内容可能不会更改.
Keep using /project
given that the actual contents of your repository probably won't change.
注意:svn relocate
在1.7版之前不可用(感谢ColinM提供的信息).在旧版本中,您将使用:
Note: svn relocate
is not available before version 1.7 (thanks to ColinM for the info). In older versions you would use:
svn switch --relocate OLD NEW
这篇关于更改SVN存储库URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!