Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS2012: Add label at a specific changeset in version control?

I want to add a label to a specific changeset in my version control of TFS2012. I right clicked at the branch -> Advanced -> Apply Label. I selected a specific changeset in the past and created the label. But all labels I created are bound to the first changeset in that branch and not to the one I entered in the labels dialog.

Is this a bug? Or how can I add a label to a specific changeset?

like image 246
Konrad Avatar asked Sep 27 '12 13:09

Konrad


People also ask

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 delete a label in TFS?

If you remove all items from a label in the Team Foundation version control server, that label is deleted. You can also delete a label using the command tf label /delete . To learn more about the existing labels in the system, see Labels Command.


1 Answers

Labels will label all files/folders in the directory at the revision they were for that specific changeset.

This means that if you right click the containing folder and view labels it will look like it put the label on the first changeset of the branch (as the main folder likely hasn't changed since the first changeset).

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.

Long story short, it's not a bug, it's just confusing.

like image 135
Betty Avatar answered Oct 09 '22 09:10

Betty