问题描述
我最近迁移到了 TFS 2012,并且与 SVN 合作了很长时间.
I recently migrated to the TFS 2012 and I have worked with SVN for a long time.
在 SVN 中,我使用标签"来标记开发的一些重要检查点",即当我完成一个软件版本(alpha、beta)时,我创建了一个 标记用于该版本.如果发生错误,我是保护".
In SVN I used "Tags" to mark some important "checkpoints" of development, ie when I finished a software version (alpha, beta) I created a Tag for that version. If some mistake happen, I am "protected".
现在,我需要在 TFS 源代码管理中使用相同的行为(或等效行为),但我对其结构感到困惑.
Now, I need the same behaviour (or equivalent) to use in the TFS source control, but I'm confused as to its structure.
我如何在 TFS 中使用标记"?
How I use "Tagging" in TFS?
推荐答案
在 Team Foundation Server 中,标签类似于其他版本控制系统中的标签;标签包含特定版本的文件.
In Team Foundation Server, labels are similar to tags in other version control system; a label contains files at a specific version.
当我们发布一些产品时,我们将整个团队项目快照为一个标签——也就是说,我们创建了一些标签 11_Release
来指向我们的 11.0.0 版本,它将包含 $/TEE
(我们的团队项目)在最新版本.然后我们解冻分支并允许进行登记.
When we release some product, we snapshot the entire team project as a label - that is to say that we create some label 11_Release
to point to our 11.0.0 release, and it will contain $/TEE
(our Team Project) at version Latest. We then unthaw the branch and allow check-ins to proceed.
当然,具体如何运作取决于您的流程.您不一定要将最新版本应用于该标签,事实上,它可能是其他变更集甚至日期版本规范.
Exactly how this works will depend on your process, of course. You need not necessarily apply the latest version to that label, it could, in fact, be some other changeset or even date version spec.
这篇关于TFS 2012 中的 SVN 标记等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!