How to view labels for a file in Team Foundation?

I am using VSTS 2005 Team Suite June CTP.

I add a label to a file, but the History command doesn't seem to show the labels that are assigned to a file.  I don't see any way to view the labels assigned to a file in Team Foundation.

Am I missing something obvious or is this truly not supported



Answer this question

How to view labels for a file in Team Foundation?

  • ErikHedlund

    In most other version control systems, you can see when a label was applied to a file by looking at the history. The label isn't versioned, but applying it to a file updates the file history.

  • Wilson Neto

    While it's not exposed in our clients, there is an overload of QueryLabels that lets you see which labels are associated with a filespec. Example here: http://blogs.msdn.com/buckh/archive/2005/10/25/484854.aspx

    I don't believe we store the timestamp when a label was applied/modified.

  • Awaneesh

    Hi Kdalons,


    At command line "h labels" and "h labels /f:detailed" command will give you all the information about the files associated with the labels.

    In UI, while Source Control Explorer is open, you could goto File Menu > Source Control > Labels > Find Label dialog, to get all the information about the labels.


    >>labels command that shows existing labels only, but viewing labels interspersed >>with the regular history would be more convenient

    What do you exactly mean by "existing labels only" Labels are not versioned item currently and we don't have any plans to do so. You would never see the history of the labels that are deleted or overridden by adding or deleting files in it. Is this what you are looking for OR You just want to get the information about the labels associated with a specific file while viewing it in history window

    Currently, we do not have any way to see all the labels associated with a specific file or folder. However, we have consider this input from other users and are tracking this work item for next version.

    Thanks,
    Bhavik


  • mofo

    I see now that there is a labels command that shows existing labels only, but viewing labels interspersed with the regular history would be more convenient...  But I guess that is what is currently provided.
  • How to view labels for a file in Team Foundation?