Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a command line TFS tool to track a changeset between branches?

Visual Studio 2010 has this nice GUI for allowing you to see the migration of a changeset between multiple branches. I would like to get this information in text format via the command line if possible. We run daily PowerShell scripts to check for unmerged changes between our Release branches and Trunk. This makes sure we don't forget to propagate a bug fix back to Trunk. However, what we are missing is the ability to then check if that same bug fix was propagated to a newer release branch e.g.:

Trunk ----------------------------------------------
      \                \
       \                ------- Release 2.0
        -- Release 1.0

We can easily check for unmerged changes between Release 1.0 and Trunk but we also want to make sure those changesets get propaged down into Release 2.0 as well.

Running tf merge /candidate between Trunk and Release 2.0 wouldn't be effective because we would get a bunch of changesets related to new features implemented after the 2.0 release. Perhaps I could do a baseless merge candidate check (from Release 1.0 to Release 2.0)? Or perhaps TFS 2012 provides some new command line option for changeset tracking?

like image 772
Keith Hill Avatar asked Jul 11 '12 17:07

Keith Hill


People also ask

How do you handle branches in TFS?

With TFS, there are several ways that you can handle releases. You can tag/label each release branch or bug fix. But the relationship between release branches and the release is not always clear. Teams need to create a naming scheme and define a TFS branching strategy to help document the flow of change.

How do I check my TFS history?

Right-Click If you have the Source Control Explorer or File List open, right-click the file you want to view and select Source Control > View History. Local Toolbar In the File List, select the file(s) you want to view. In the local toolbar of the File List, click , then select View History .


1 Answers

You'll probably want to use a combination of tf branches and tf merges. If these don't give you the information you need then I think you're going to be writing your own console application or powershell snapin using the TFS API

like image 55
James Reed Avatar answered Sep 27 '22 23:09

James Reed