2

我让 SVN 自动将一些项目从主干的另一部分下载到我当前的主干位置 - 即与 SVN:Externals 共享项目。

但是我现在像这样硬编码

   MS.Utils http://192.168.1.1/svn/repro/projects/TestProj/trunk/MainApp/src/MS.Utils

现在这正在工作,一切都很好,因为我目前在 TRUNK 中......当我完成这个项目时,我会将它移动到一个分支!因此 SVN:Externals 仍将指向主干。是否可以放入相对路径,所以它会从主干下载?当我将它移动到一个分支或由于使用相对路径而将从该分支下载的任何内容时。

4

1 回答 1

4

正如Subversion book中提到的,您也可以在 svn:externals 属性中指定相对 url。

../

Relative to the URL of the directory on which the svn:externals

属性已设置 ^/

Relative to the root of the repository in which the svn:externals

属性版本化 //

Relative to the scheme of the URL of the directory on which the

svn:externals 属性设置 /

Relative to the root URL of the server on which the svn:externals

属性是版本化的

于 2011-07-19T14:06:53.583 回答