How do I associate a review request with multiple changesets in TFS 2012

前端 未结 4 942
鱼传尺愫
鱼传尺愫 2021-02-02 08:58

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 li

4条回答
  •  抹茶落季
    2021-02-02 09:28

    On item #2, I have a standard work around that you might like to combine all changes from many changesets into one shelveset for review. I tried the checkout method mentioned above and ran into issues, partly because my review had 25 files or so and after checking them out, if I refreshed, TFS removed them from pending changes because it TFS's opinion there were no changes.

    First, (assuming that your changes are already checked in, and in multiple changesets), have a workspace with the latest files on a disk path such as D:\Latest...

    Create a new "local" workspace (called "Review"), map the same project to the slightly different path (say, D:\Review...") get all the files. Go to the history of that project and just before your earliest changeset, right-click and select "Get this version".

    At this point, go to the history and rollback any changesets that someone else may have changed in the meantime, if any, that you don't want to be part of the review, unless someone changed a common file. Leave those.

    Using beyond compare, compare "D:\Latest..." to "D:\Review...", copy your changes from Latest to Review. Go into the common files and copy only the lines that you want reviewed. When Beyond Compare writes out the changes, TFS will detect the change and put the file you save in your pending changes list for the "Review" workspace. (That's a feature of local workspaces.)

    At this point, you just shelve your pending changes from the "Review" workspace, and request a review on that shelveset.

提交回复
热议问题