我正在尝试使用 TFS 命令行 TF.exe 执行以下操作
- 创建标签并将其应用到文件夹下的文件和子文件夹的最新版本
- 比较 2 个标签以找出 2 个标签之间的差异、文件名、变更集详细信息等
我试图通过命令行实现
最佳答案
创建标签:
tf label "LabelName" /owner:domain\me $/Project /version:T /recursive
您需要指定标签的根路径。您的示例中似乎缺少这一点。
对于两个标签之间的差异,请使用:
tf diff "$/Project/Path;LlabelnameA" "$/Project/Path;LlabelnameB" /recursive /nopromptNote that the
;...
part instructs to take the Itemspec at a specific version;L...
tells it to look up the version by label. Insert the label name on the...
然后,对于返回的每个文件,您可以更深入地挖掘。
关于TFS 标签命令行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26586931/