在 svn 中标记部分树与完整树干 [英] tag partial tree vs full trunk in svn
问题描述
我们有一个具有以下结构的存储库:
We have a repository with the following structure:
repos
trunk
module1
module2
...
tags
branches
我们通常会向客户发布单独的模块,有时也会向客户发布整个应用程序.
We usually release individual modules to the customer and sometimes the whole application.
现在我们将交付 module1,我正在尝试在这两个选项之间做出决定:
Now we are going to deliver module1 and I'm trying to decide between these two options:
- a) 标记 module1(即将主干/module1 复制到 tags/module1_v1.00)
- b) 标记完整的主干(即将主干复制到 tags/v1.00)
是否有规定所有标签都应包含完整主干的约定?做某件事有什么好的理由吗?
Is there any convention that all tags should include the full trunk? Is there any good reason to do one thing or the other?
谢谢!
推荐答案
如果存在相互依赖关系,那么你应该标记所有,否则只标记一个就可以了.无论哪种方式,您都希望保持一致.
if there are inter-dependencies then you should tag all, otherwise tagging just one is fine. Either way, you want to be consistent.
如果你标记一个模块,路径应该是:
If you tag a module, the path should be:
/tags/rel_1.0/module1
不是
/tags/module1_v1.0
当然,您可以随心所欲,但最好遵循 SVN 建议.
Of course you can make it whatever you want, but it's best to follow SVN recommendations.
http://svnbook.red-bean.com/en/1.5/svn.branchmerge.commonpatterns.html
这篇关于在 svn 中标记部分树与完整树干的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!