如何在 SVN 中分支并让它也分支我的 svn:external 文件夹? [英] How can I branch in SVN and have it branch my svn:external folders as well?
问题描述
我在 Windows 中使用 tortoise svn.
I'm using tortoise svn in Windows.
如何在 SVN 中分支并让它也分支我的 svn:external 文件夹?
How can I branch in SVN and have it branch my svn:external folders as well?
推荐答案
您应该使用 svn:externals
作为来自不同存储库的 external 引用.所以svn:externals
应该是指组件、模块、第三方工具等.
You should use svn:externals
as external references from different repositories. So svn:externals
should refer to components, modules, 3rd party tools, etc.
您应该不使用 svn:externals
来模拟符号链接"行为,方法是使用 externals 指向同一个存储库.大多数情况下,您可以通过修改构建结构或使用结帐脚本和稀疏结帐功能来解决此类问题.
You should not use svn:externals
to emulate a "symbolic link"-behaviour by using externals to point into the same repository.
You can solve such issues most of the time by modifying your build-structure, or use checkout-scripts and sparse checkout feature.
svn:externals 有很多问题,其中大部分很难看到、跟踪和修复:在此处查看示例
svn:externals have a lot of problems most of them are difficult to see, track and repair: see an example here
- 提交不能跨越外部(无原子提交)
- 分支不会分支它们的外部(正如您所指出的)
- 标签不会冻结"它们的外部,因此后面的构建可能会导致不同的/损坏的构建
- 合并和重新整合合并不适用于外部
如果您使用 externals 指向其他存储库,则大多数情况下您不会遇到这些问题.
If you use externals to point to other repositories, you will most of the time do not have these problems.
这篇关于如何在 SVN 中分支并让它也分支我的 svn:external 文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!