问题描述
在配置 subversion externals 时有没有办法使用相对路径.
Is there any way to use Relative path when configuring subversion externals.
例如
Trunk
- directoryA
- directoryB
- projectA {external DirectoryB}
为了配置 ProjectA,我们必须在外部属性中配置完整路径,这会导致问题或迫使我们在执行分支时更改属性.
For configuring ProjectA we have to configure full path in the external property which is causing problems or forcing us to do change the properties when we do branches.
任何自动化分支过程或使用绝对路径修复的方法都会很有用
Any way to automate the branching process or fix with absolute path will be useful
推荐答案
Subversion 1.5 客户端支持相对 url:
Subversion 1.5 clients support relative urls:
请参阅 Subversion 1.5 发行说明 和 subversion 手册了解更多详情
See the Subversion 1.5 release notes and the subversion manual for more details
一些例子:(注意不支持注释语法)
Some examples: (Note that the comment syntax is not supported)
# Repository root relative
^/projectX/trunk/src/ projectX
# Relative to current directory
../../dependency/X X
# Server root relative
/svn/repos/projectX/trunk/src projectX
# Schema relative
//svn.collab.net/repos/svn/trunk svn
这篇关于Subversion 外部配置中的相对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!