如何将审阅请求与TFS 2012中的多个变更集相关联 [英] How do I associate a review request with multiple changesets in TFS 2012

查看:85
本文介绍了如何将审阅请求与TFS 2012中的多个变更集相关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的开发过程是这样的:团队负责人(我)每2周参加一次会议,并审查每个人的变更集,以确保它们符合编码标准.我想使用TFS 2012来帮助实现此过程的自动化.

Our development process works like this: Every 2 weeks the team lead (me) goes in and reviews everyone's changesets to make sure they are up to the coding standards. I would like to use TFS 2012 to help automate this process.

这有2个问题:

  1. 无法提交未经请求的代码审查.我想,如果有必要,我可以没有这个生活

  1. There is no way to submit an unsolicited code review. I can live without this if necessary, I guess

无法将一个代码审阅与一个以上的变更集相关联.这是一个破坏交易的人

There is no way to associate a code review with more than one changeset. This is a deal-breaker

我读了一篇文章,说事实之后可以将变更集链接到工作项,当我打开工作项进行请求审阅时,我确实看到了链接"选项卡.但是,当我单击新建"或链接到..."时,没有选项链接到变更集.只有一个选项可以链接到流程中的每个工作项类型.

I read one article which said it's possible to link changesets to a work item after the fact and when I open the work item for the request review I do see the Links tab. However, when I click "New" or "Link to...", there is no option to link to a changeset. There is only an option to link to each work item type in the process.

有人知道该怎么做吗?有没有计划将这些功能添加到TFS中?

Does anybody know how to do this? Are there any plans to add these features to TFS?

以下是屏幕截图:

推荐答案

  1. 不请自来,不.
  2. 您可以在历史记录屏幕中右键单击一个变更集,以请求评论发布签到.

有一个讨厌的解决方法来获得您想要的目标.签出您要查看的所有文件并请求查看.然后,您可以撤消您的结帐,货架集和审阅请求将保留.

And there is a nasty workaround to get what you want to achieve. Check out all files you want to review and request a review. You can then undo your checkout, the shelveset and the review request will remain.

或者,您可以仅转到源代码管理选项卡,然后在解决方案的根文件夹中进行全部签出,请求检查,撤消签出并进行检查.

Alternatively you can just go to the source control tab and do a checkout-all on the rootfolder of your solution, request the review, undo your checkout and do the review.

对于将变更集链接到工作项,可以在签入后完成.打开工作项,转到链接选项卡,然后单击链接到...".那里的下拉菜单将带有变更集"选项.但是我不认为此代码检查请求会启用此链接类型,因为这些请求使用Shelveset而不是一组变更集作为代码检查的源.

As for linking changesets to a Work Item, this can be done post checkin. Open the work item, go to the links tab and click "Link to..." The dropdown there will have a "Changeset" option. But I don't think this link type is enabled for Code Review Requests, since these use a Shelveset and not a set of changesets as the source for the code to review.

我希望您可以使用TFS API生成一个架子集,其中包含特定开发人员在给定时间范围内的所有更改,将它们放在架子上并请求对此进行审查.但是不存在执行此操作的现有功能.

I expect you could use the TFS API to generate a shelveset with all the changes from a specific developer in a given timerange, put these on a shelveset and request a review on that. But no existing feature to do that exists.

或者您可以通过创建一个具有相同名称的新评论来编辑与该评论相关联的书架.

Or you might be able to edit the shelveset of associated to the review by creating a new one with the same name.

这篇关于如何将审阅请求与TFS 2012中的多个变更集相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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