Code reviews before applying a Team Foundation Server shelveset

Published 15 June 07 08:25 PM | John D'Addamio 

When our team started using the TFS code repository features, we began using shelvesets to bundle changed files together for code reviews. Other team members can retrieve your shelvesets and apply the changes. The problem was that we often wanted to see what had changed in the source files rather than re-reviewing the entire file. Here how you can do this before applying the shelveset:

1.       Right click the solution name in the Solution Explorer

2.       Select Unshelve Pending Changes from the right click menu – This will bring up the Unshelve dialog box

3.       In the Unshelve dialog box

a.       Type the username of the person whose shelvesets you want to access in the Owner name text box.

b.      Click the Find button – That will display a list of that user’s shelvesets

c.       You have two choices: Single click the shelveset name and then click the Details button or double click the shelveset name. Either way  will bring up the Shelveset Details dialog box

4.       In the Shelveset Details dialog box, you will see a list of files that are included in the shelveset.

5.       To see the changes in a particular file, right click the file name, select Compare and the appropriate comparison file. The menu offers two choices: an unmodified version of the file and the last checked in version. If you also have the file checked out in your workspace, that choice is also available. A difference window will be displayed which shows you the changes and allows you to navigate through them with arrow buttons.

When a new file is added you can only view the file. To view a file, double click the file name. You can also single click it and then click the View File icon in the tool bar. This will display the file in the default editor, usually Notepad.

Comments

# Actors and Actresses » Archive du blog » John D’Addamio’s blog : Code reviews before applying a Team Foundation … said on January 3, 2008 9:38 PM:

PingBack from http://actors.247blogging.info/?p=451

Anonymous comments are disabled

About John D'Addamio

I am a Software Design Engineer in Test (SDET) on the Developer Aftermarket Solutions team at Microsoft Corporation. Basically, an SDET is a programmer who specializes in testing other people’s software and/or writing software that is used for testing. I joined Microsoft in 2003 and the Solutions team in 2005. Prior to joining Microsoft, I was a developer and developer lead writing real time software; mostly air traffic control systems. The fun thing about testing is that people are happy when you find a way to break things! I like to balance my high tech work life with low tech activities. So, outside of work, you will probably find me on the back of a horse, doing the maintenance that horses require, or reading a book.

Search

This Blog

Syndication

Page view tracker