Show labels on projects and/or a folder
-
Monday, March 15, 2010 2:00 PMHi
What is the best and quick way to see which labels are on a tfs project ,folder or file in TFS project ?
Thanks,
CM Consultant
All Replies
-
Wednesday, March 17, 2010 8:55 PM
In Visual Studio 2010, you can use the History window's Labels tab to show all the labels for a particular file or folder.
This picture http://blogs.msdn.com/blogfiles/youhana/WindowsLiveWriter/PresentingVisualizingChangeUsingTFS2010t_A62A/image_6.png shows the Changesets tab but you can see the Labels one right next to it. Click that and they will be visible.
On TFS 2008 you can use File -> Source Control -> Find Labels... and filter by team project, but not by a particular file or folder. That's new in 2010.- Proposed As Answer by Cathy KongModerator Monday, March 22, 2010 5:24 AM
-
Monday, March 22, 2010 7:41 AM
Hi
Thanks for the info - is there anyway to filter or find labels by creation date/time ? (in TFS2008)
CM Consultant -
Monday, March 22, 2010 12:55 PM
The last modified date timestamp for a label is stored in the database, and is returned to the client as part of a call to QueryLabels. (So, you can see this data in the Labels channel of the History toolwindow in VS 2010.) However, the QueryLabels API does not support filtering by a date range or sorting by timestamp.
If you are the TFS administrator and have a need to perform queries like this on an occasional basis, it would be easy to write a SQL query against the operational store. The database schema for labels is pretty intuitive, but since our client object model (QueryLabels in this case) is the only supported API for querying label metadata, I can't help you out here further.
-
Friday, June 11, 2010 2:42 PM
Hello,
you can write simple tool using tfs object model that would be doing it.
I would suggest trying tfs labels sidekick first, on the screenshot it looks like you can filter labels by date.
http://www.attrice.info/cm/tfs/
Michal Malecki TFS Version Control Client