Show updated files in response to comments

We are beginning to use the code review functionality built-in to VS 2012 and VS 2013 preview. Requesting the review and adding comments seem pretty straightforward. If someone adds comments requesting the code to be changed, then how does the requester make these changes and show them?

So the process would flow like this:

  • Person 1 requests a code review.
  • Person 2 adds comments and selects "Needs Work."
  • Person 1 makes the necessary changes.
  • How does Person 1 now show these changes to Person 2? You can add comments and send them, but the files don't change. I'm assuming the files are from the changeset created when the original review was requested. Should Person 1 close this review, and request a second review?

    Creating a second review doesn't seem optimal, because you lose the history of your conversation of why you were making the changes.

    There are ton of websites showing how to use the basic functionality of the code reviews, but are there any sites that show the best practices? For instance, who should be clicking the check boxes next to files?


    So the process would flow like this:

  • Person 1 requests a code review.
  • Person 2 adds comments and selects "Needs Work."
  • Person 1 makes the necessary changes.
  • Person 1 Updates the shelveset associated with the code review
  • Person 1 adds comments to continue the discussion
  • Repeat steps 2 - 5 until accepted
  • Here are the steps necessary to update the shelveset associated with the review.

  • From the "Code Review" pane select the "view shelveset" link
  • From the "Shelveset Details" pane highlight and copy the shelveset name
  • Navigate to the "Pending Changes" pane, click on "Shelve" and paste the shelveset name
  • Press the Yes button on the shelveset replace verification dialog
  • Now the reviewer can see the updated files and the review discussion can continue
  • I've included some screen shots as I find it helps to clarify things.


    1) From the "Code Review" pane select the "view shelveset" link as shown here:

    在这里输入图像描述


    2) From the "Shelveset Details" pane highlight and copy the shelveset name as shown here:


    3) Navigate to the "Pending Changes" pane, click on "Shelve" and paste the shelveset name for example:

    在这里输入图像描述


    4) Press the Yes button on the shelveset replace verification dialog:

    在这里输入图像描述


    I believe the correct procedure is fore Person 1 to make the changes and request another review. When your code needs work that means you will be changing it so you will want to have the old version to look back to for comparison. You still have the old review in the history after it is closed if you wish to look over the comments. We are currently in the process of optimizing our code review process in my workplace.


    I know this question is old, but it's still not supported as pointed out by other posters. The solution proposed by chad will work for some things but will have odd behavior for others.

    Recently, the TFS team began the planning stages for a solution to a very old uservoice request to enable updating of a Code Review which should elegantly solve this problem by making Code Reviews have iterations.

    链接地址: http://www.djcxy.com/p/64852.html

    上一篇: 需要远程文件上传帮助

    下一篇: 显示更新的文件以回应评论