Artalus
Artalus

Reputation: 1162

Summarize changes of several changesets in TFS?

I have several checkins related to a single work item. Is there a way to get a summary of all these checkins, so I can see the difference between files before I've started working on them (like, at the moment of changeset A), and their final form (changeset B)? I would use View history and compare the folders of changeset A and changeset B, but that will give me lots of diffs that were made by other people in different files that are of no interest to me.

Edit: As suggested by Patrick-MSFT, I tried to use TFS Sidekicks, but for some reason I don't seem to get any result whatever combination of filters I use.

enter image description here

Upvotes: 5

Views: 2085

Answers (2)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29976

You can use tf difference command to compare the changes between two changesets for a specified file.

tf difference /version:669~672 program.cs /format:Context

Upvotes: 1

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51183

You can achieve this by using TFS Sidekicks. You can search for your single work item and it will give you a consolidated view.

  1. Install sidekicks for your relevant TFS version
  2. Open side kicks and connect it to TFS (usual tfs dialogue)
  3. Click Tools -> Code Review Sidekick
  4. Click by Work Items and select the appropriate Project and Query (TFS explorer workitem query). Alternatively, you can search by changesets
  5. Select the appropriate work item.
  6. This will show all the changes for that work item

In your case , you want to compare all of the changes to a file, from its state before the first checkin of this workitem and the last checkin of the workitem (collapse all of the changes) enter code here

Right click the file you are reviewing, the one associates with the highest changeset number, and select 'compare with previous (not in view)' This will show you the complete difference in your VS configured diff tool.

Note: If the file is new and has multiple checkins, select the one with the maximum changeset it, and select 'compare with oldest in the view'

Upvotes: 2

Related Questions