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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With