2

I have' ExternalFolder' and 'trunk'in my SVN. 'trunk' has an empty folder linked to ExternalFolder (as written below). I want to create a script that will take branch the trunk, tag (or branch) the ExternalFolder and connect the 'externals' in the newly branched trunk and connect it to the newly tagged ExternalFolder as in the following example:

  • trunk
    • Project1
      • Externals (linked to ExternalsFolder)
  • ExternalsFolder
  • Branches
    • Project1_BranchA
      • TaggedExternalsFolder
      • Project1
        • Externals (linked to Project1_BranchA\TaggedExternalsFolder)

If this is complicated to achieve, I can also have the new tagged or branched 'ExternalFolder' to be located in a different location. Putting them both in the same dir is just for ease of access. Is there an easy way to achieve this? Do I need to write a script?

Thanks, Guy

4

1 回答 1

0

我遇到了和你类似的问题。我使用pysvn使用 python 脚本解决了它:

  1. 递归地抓取我项目的所有外部
  2. 冻结每个外部,在外部属性中显式设置修订(比为每个外部创建分支/标签更容易)
  3. 然后创建标签或分支
于 2012-11-13T09:15:39.593 回答