SVN 标签的最佳实践? [英] Best practice for SVN tags?
本文介绍了SVN 标签的最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该将它们作为单独的版本使用吗?我是否将它们检查回树干或分支?这都在红皮书里吗,我只是在浪费你的时间?
Should I use them as separate releases? Do I check them back into trunk or branches? Is this all in the red book and I've just wasted your time?
推荐答案
不要忘记一个标签和一个分支在 SVN 中本质上是相同的:两者都是 svn copy
Do not forget that a tag and a branch are essentially the same thing in SVN: both are the result of svn copy
诀窍是,由于标签代表快照,因此它应该是不可变的"标签,因为您不应对其进行任何修改.
The trick is, since a tag represents a snapshot, it should be an "immutable" one, in that you should not make any modification on it.
快照(标签)代表什么完全取决于您.它可以是:
What that snapshot (tag) represents is entirely up to you. it can be:
- 开发中的稳定状态
- 在复杂合并之前的标记(以便在合并太复杂而无法快速解决时返回到它)
- 发布或补丁
- 等等......
这篇关于SVN 标签的最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文