更改SVN存储库URL [英] Change SVN repository URL

查看:271
本文介绍了更改SVN存储库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 switchsvn 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:

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆