在SVN结账多个项目

时间:2012-03-24 03:08:55

标签: svn tortoisesvn

我有以下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 / trunkProject1 / 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 )

1 个答案:

答案 0 :(得分:1)

以下是您需要采取的步骤来解决问题(感谢@Corbin和@Lazy_Badget的提示,请查看documentation of SVN red book):

  1. 将以下外部定义添加到目录/Project1/branches/Client1

    /Project1/trunk Client1All
    /Shared/trunk Shared
    
  2. 因此,当您将目录/Project1/branches/Client1作为目录Project1_Client1签出以下本地结构时,您应该得到:

    /Project1_Client1
      ... all the subdirectories as usual
      /Client1All
      /Shared