显示两个标签之间的所有变更集 [英] Show all changesets between two labels

查看:33
本文介绍了显示两个标签之间的所有变更集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 TFS2010 中,每个构建都与构建服务器的标签相关联.

In TFS2010 each build is associated with a label by the build server.

我们的 SCM 管理层希望查看两个标签之间的所有变更集和相关工作项.大多数情况下,这些标签是具有已发布"构建质量的构建.通过这种方式,可以报告两个已交付构建之间的所有更改.

Our SCM management wants to see all the changesets and related workitems between two labels. Mostly those labels are builds that have a build quality "Released". This way all changes between two delivered builds can be reported.

这是如何在 TFS 2010 中完成的?

How is this done in TFS 2010 ?

推荐答案

我认为您不想使用标签,我认为您想使用构建的日期/时间.标签很容易改变,并不一定代表一个时间点.假设您有构建的日期时间,您可以使用 TF.EXE 命令行来生成它.

I don't think you want to use the label, I think you want to use the date/time of the build(s). Labels are easily mutable and don't necessarily represent a point in time. Assuming you have the datetimes of the builds, you can use the TF.EXE command line to generate this.

例如:

tf.exe history /server:http://tfs:8080 "$/ProjectName/src" /version:D2010-09-12T11:30~D2010-09-29T11:30 /recursive /noprompt /brief

/version: 参数是这里的关键之一.这应该在您第一次构建的时间之后,直到并包括第二次构建的时间.

The /version: parameter is one of the keys here. This should be after the time of your first build and up to and including the time of the second build.

如果您使用/format:detailed,您还将获得每个变更集中发生更改的所有文件的列表.这可能是大量的数据.您可能希望重定向输出 >output.txt 如果你这样做.

if you use /format:detailed, you'll get a listing of all files that changed in each of the changesets as well. This can be a lot of data. You'll probably want to redirect the output > output.txt if you do this.

更新

如前所述,实际上您可以确定两个标签之间的变化.但是,如果这些标签移动了,您的结果可能会受到影响.

As mentioned, you can, in fact, determine the changes between two labels. However, if these labels have moved, your results may be compromised.

tf.exe history /server:http://tfs:8080 "$/ProjectName/src" /version:LMain-CI_20100831.6~LMain-CI_20100927.1 /recursive /noprompt /brief

我仍然建议使用日期而不是标签.我相信您从该方法中获得的结果可能更符合您的要求.

I would still recommend using the dates instead of the labels. I believe the results you receive from that approach probably more closely match your requirements.

更新 2

我刚刚注意到您正在使用 TFS 2010.您可能需要更改 /server: 参数以指向适当的集合.使用 TF.EXE history/? 获取参数列表,但更改将使用 /collection:TeamProjectCollectionUrl

I just noticed you're using TFS 2010. You will probably have to change the /server: parameter to point to the appropriate collection. Use TF.EXE history /? to get the list of parameters, but the change would be to use /collection:TeamProjectCollectionUrl

这篇关于显示两个标签之间的所有变更集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆