Ever been in a situation where you have created a shelveset for a colleague to review or extend and he/she has created another shelveset for you. Neither Visual Studio nor Team Foundation Server Power Tools provides functionality to compare the contents of two shelvesets. You can, of course, compare the files in a shelveset with previous version, current version and workspace version. The work around is to unshelve changes from one shelveset and then compare the files in the other shelveset with your workspace files.

The Shelveset Comparer extension provides this functionality by allowing you to compare the contents of  two shelvesets. You can compare the contents of your own or another owner’s shelveset simply by double clicking on the files.

Once installed the extension appear as a Navigation Link in your Team Explorer window

shelveset comparer Link

On Visual Studio 2012, the link would appear as below

shelveset comparer Link vs2012

Clicking on the link will open up the “Shelveset Comparer” window showing your shelvesets in the default view

You can type another person’s name to fetch his/her shelvesets. Once you have selected the two shelvesets, click the “Compare” button and it will list the files in the two shelvesets side-by-side. It also does a binary comparison of the common files to review if they have the same content or not.

List Files

Double click on any file and you will see the contents of the selected files with the changes highlighted.

Compare Contents

Please note that the file comparison is only for reference. None of the two files shown in the comparison window are downloaded in your workspace or is the working version of the file.

I hope this extension is useful for the developers community and am looking to hear back with your feedback and suggestion and of course if you want to contribute, please drop me a line. Happy coding!!

Last edited Feb 28 at 2:10 PM by hamid_shahid, version 9