Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I figure out which changeset a label in TFS was applied to?

We're using Team Foundation Server and we are using Labels to create points in our version history where specific versions (either internal or external) were produced.

Right now we were wondering if a particular changeset was done before or after a specific label (and thus included in that version or not), but we must be looking in the wrong place. This information is usually provided in the bug-tracking system but this time this field was left open so we thought we could use TFS to figure it out.

The version history for a file doesn't include labels applied. To find labels, the place I know to look is to use the "Get Specific Version" dialog, set type to Label and use the Label selection dialog to see which labels we've made, but this dialog doesn't tell me the changeset before/after the label was applied.

Is the only way to figure out if a particular change was part of that release or not to create a new workspace, map up the directory with the files to a temporary directory on disk, use the Get Specific Version dialog to extract that release and do a file-diff?

Please tell me how stupid I am and point me in the right direction.

like image 501
Lasse V. Karlsen Avatar asked Feb 13 '09 12:02

Lasse V. Karlsen


People also ask

How do I get a specific changeset in TFS?

Take searching for a changeset in Visual Studio's TFS Source Explorer. Luckily if super easy to do! When you're in the Source Explorer, simply press Ctrl + G and the Find ChangeSet dialog will appear.

How do I add a label to a changeset in TFS?

If you right click in source control explorer and select -> find -> find by label, then select your label and click edit, you'll see a list of all files in the label and the changeset of when they last changed prior to the label changeset.

How do I get a new changeset number in TFS?

If you don't know the number, to find a changeset, In Source Control Explorer, on the menu bar, File => Source Control => Find => Find Changesets. The Find Changesets dialog box will appear. (Optional) Next to the Containing File box, choose Browse.


1 Answers

Run in your local workspace

tf history . /stopafter:1 /noprompt /r /version:Lmylabel

to get

Changeset User          Date       Comment
--------- ------------- ---------- --------------------------------------------
88888     brian_low     11/11/2012 did some work
like image 192
Brian Low Avatar answered Sep 24 '22 05:09

Brian Low