我可以查看带有标签的TFS文件历史记录吗?
我们目前正在使用Visual Source Safe和Team Foundation Server(VSS用于旧项目,TFS用于当前或新项目).
We currently are using both Visual Source Safe and Team Foundation Server at work (VSS for old projects, TFS for current or new projects).
我们一直在每个版本的源代码管理中使用Labels.在VSS中,如果您选择查看文件历史记录,则可以包含标签.在TFS中,我找不到在历史记录窗口中包含标签的选项.
We have always used Labels in source control for each build. In VSS if you chose to see a file history you could include labels. In TFS I cannot find an option to include the lables in the history window.
由于支持或管理人员最常见的问题之一是我们修复/添加/删除/更改xxxx版本是什么?",因此我一直依赖历史记录中显示的构建标签.
Since one of the most common questions that I get asked by support or management is 'What version did we fix/add/remove/change xxxx?', I have always relied on our build labels showing up in the history.
我可以让标签显示在文件历史记录中吗?
Can I get Labels to show up in a file history?
在TFS的2008版本中,文件和文件夹的标准历史记录中没有标签.如果您真的想知道为什么-请参阅Brian Harry的博客文章"为什么TFS标签与VSS标签不同.
In the 2008 version of TFS, you don't see labels in the standard history of files and folders. If you really want to know why - see Brian Harry's blog post "Why TFS Labels are not like VSS Labels".
要在Visual Studio中查找标签,请依次转到文件",源代码管理",标签",查找标签...",从中可以看到该标签中包含哪些文件版本.
To find labels in Visual Studio, go to File, Source Control, Label, Find Label... From that you can see what versions of files were included in that label.
团队肯定已经听说过这不是理想的选择,TFS的下一版本(Team Foundation Server 2010,代号为"Rosario")将包括对历史记录"视图的改进,以使标签更易于查找-请参见 http://go.microsoft.com/?linkid=7807943 了解改进历史记录"视图中的规范TFS 2010.
The team have definitely heard that this is not ideal, and the next version of TFS (Team Foundation Server 2010, codenamed "Rosario") will include improvements to the History view to make labels easier to find - see http://go.microsoft.com/?linkid=7807943 for the spec of improvements to the History view in TFS 2010.
顺便说一句-实际上,我使用TFS转向了基于变更集的内部版本号,这使得标记的必要性降低了.有关更多详细信息,请参见 http://www.woodwardweb.com/vsts/changeset_based.html
BTW - I actually moved to changeset based build numbering with TFS which makes labelling less necessary. See http://www.woodwardweb.com/vsts/changeset_based.html for more details.
希望有帮助,
马丁.