svn:externals接受相对路径?

时间:2011-07-19 07:47:13

标签: svn tortoisesvn svn-externals

我有SVN自动下载从主干的另一部分到我当前主干位置的一些项目 - 即与SVN共享项目:外部......所有工作正在......

但我现在已经硬编码了

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

现在,你可以看到这是有效的,一切都很好,因为我目前在TRUNK ...当我完成这个项目时,我会将它移动到一个分支!因此SVN:外部仍将指向Trunk,是否可以放入相对路径..... ???所以它将从TRUNK下载,因为我现在在那里,当我将它移动到分支或由于使用相对路径将从该分支下载的任何内容。

任何帮助真的很感激

由于

1 个答案:

答案 0 :(得分:3)

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
     

属性已版本化