Konrad
Konrad

Reputation: 4782

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?

Upvotes: 28

Views: 27235

Answers (2)

Nee
Nee

Reputation: 5

In the visual studio , File -> Source control -> Advanced -> apply lable Provide the project/source path in the window and click create. Ofcourse you can find your label in the source control history. After each live release this is good practice to label your solution guys.

Upvotes: -3

Betty
Betty

Reputation: 9189

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.

Upvotes: 34

Related Questions