There are no versions on the shelves, but you can compare the code in the workspace with the code on the shelf without pulling out files on the shelves.
- Pull the versions of the files with which you want to compare the contents of the shelf into the workspace
- open the solution in this workspace
- File β Source Control β Undo Pending Changes ...
- Find the desired shelf and pick up its details.
- In each file in the Shelf Details window, you can right-click and select Compare β With workspace version ...
TFS will pull the shelf file to a temporary location, show diff, and then (?) Clear the temporary file after you are done.
You are comparing the contents of the shelveset file, the contents of the files on the local drive in this workspace. If changes were made to both files, the comparison will not be able to tell and will point to all these changes. However, you can compare the selveset version with its original version (Compare β With Unmodified Version ..) to see all the changes made only to the shelveset file. You can also find out the changeset that was the base for the shelveset file (Properties ..) and see what changes have been added to the version of the workspace, since this is a common set of changes to the database.
However, there is no tree, and this may require the use of TFS power tools.
PS> I do not recommend using shelves instead of these checks. If over the years I learned something, this is not to deal with Microsoft-developed workflows - you do something in your own way or find another tool. Microsoft does not intend to use these cabinets in this way (they want you to use revisions and branch), and if you try, you will constantly struggle with the workflow developed by Microsoft.
source share