0

我们团队的项目解决方案有几个与之关联的单独项目,其中一个旨在作为我们应用层的底层框架——称之为“FrameworkProject”。只有在极少数情况下才应该编辑此项目的代码,在这些情况下,我希望能够批准对代码的更改。是否有 TFS 功能可以让我实现这一目标?

我们正在使用 VS2010 和 TFS2010。

4

3 回答 3

1

You have several options:

  1. Implement a custom check in policy and work item type. TFS Code
    Review Workflow
  2. Look at Team Review
  3. Implement a process that enforces that any changes must be shelve-set first allowing for a code review. Once the review has
    taken place then based on permission the allowed member checks the
    code into the Project.

Hope this helps.

于 2012-08-20T18:14:05.900 回答
0

You may create a "working" branch of your framework and revoke checkin rights from the main branch for everyone except the reviewers. When someone needs to do a change, he has to change the working branch and a reviewer then has to merge the changes to the main branch in this step he will review all changes using his preferred diff tool on the mergeset before checkin in. He may revoke the merge and request fixes by simply undoing his working copy and optionally checking in review comments into the working branch.

于 2012-08-21T08:22:27.767 回答
0

以下是其他一些选项:

  1. 您可以使用签入锁来阻止签入。您可以通过锁定要保护的顶级目录来做到这一点。现在,如果有人尝试签入,签入将失败,您需要有一个内部流程来查看更改,临时解锁文件夹并允许签入继续进行。
  2. 您可能会实施一个门控签到工作流程,当签到提交到给定路径时,它会向您发送一封电子邮件。从那里您可以进行一些批准流程,以完成门控登记。
于 2012-08-21T00:24:41.907 回答