我有以下SVN结构:
/Project1
/trunk
( Shared code between all clients of project 1 )
/branches
Client1
( Specific code for version project 1 of the client 1 )
Client2
( Specific code for version project 1 of the client 2 )
/tags
...
/Project2
/trunk
( Shared code between all clients of project 2 )
/branches
Client1
( Specific code for version project 2 of the client 1 )
Client2
( Specific code for version project 2 of the client 2 )
/tags
...
/Shared
/trunk
( Shared code between project 1 and project 2 )
/branches
...
/tags
...
我想知道,当我结帐Project1 / trunk
时,是否可以自动结帐Shared / trunk
和Project1 / branches / Client1
,以便在wwwroot中拥有以下结构:
/Project1_Client1
( Specific code for version project 1 of the client 1 )
( Shared code between all clients of project 1 )
( Shared code between project 1 and project 2 )
答案 0 :(得分:1)
以下是您需要采取的步骤来解决问题(感谢@Corbin和@Lazy_Badget的提示,请查看documentation of SVN red book):
将以下外部定义添加到目录/Project1/branches/Client1
:
/Project1/trunk Client1All
/Shared/trunk Shared
因此,当您将目录/Project1/branches/Client1
作为目录Project1_Client1
签出以下本地结构时,您应该得到:
/Project1_Client1
... all the subdirectories as usual
/Client1All
/Shared