如何防止TFS覆盖标签?
时间:2020-03-06 14:32:30 来源:igfitidea点击:
如果我在TFS中做一个标签,然后再做一个同名的新标签...那么旧标签将被新标签替换。
如何防止TFS覆盖标签?
解决方案
以下MSDN文章介绍了使用标签的作用域来尝试减少这些不幸事件的发生:
Using the /Child Option to Avoid Labeling Mishaps If you issue a label command together with a pre-existing label name and an itemspec that includes files that are already marked by the same label, the value of the /child option determines whether the marked files are updated with new revision information. That is, the files are labeled by the same name, but have different scope.
谢谢,这使我走上了正确的道路。
标签覆盖似乎是一个"功能",而不是一个错误。它按设计工作
sixletter的链接在上面进行了说明,下面是另外两个包含该信息的链接。
http://msdn.microsoft.com/zh-CN/library/ms181439(VS.80).aspx
http://msdn.microsoft.com/zh-CN/library/ms181440(VS.80).aspx
显然,TFS标签并不像其他VCS那样紧贴时间点,尽管我不完全理解该解释。