Mystagogue

I want to be able to add a label to all files that were modified/added/whatever as part of a changeset. But I've discovered that if I simply request the label be added to changset X, it gets applied to every single file everywhere. Is there another way to do this In the meantime, I must painstakingly find each and every file that was touched, and place the label on it explicitly.

Also, I'd like a way to highlight the list of all files presented as "details for changeset X," copy them, and then paste them elsewhere. But it won't let me do it!! Is there something I'm missing




Re: Team Foundation Server - Version Control Smart Labels and Changeset Dump

Richard Berg MSFT

The best way to do this will be with a script or a piece of API code. In short, pipe the output of tf changeset to tf label.




Re: Team Foundation Server - Version Control Smart Labels and Changeset Dump

Ron_Stiffler

can anyone provide an example of this



Re: Team Foundation Server - Version Control Smart Labels and Changeset Dump

Michal Malecki - MSFT

Here are a few examples of using our Object Model. It should be fairly easy to write code you want.

http://blogs.gotdotnet.com/buckh/archive/2005/10/25/484854.aspx

http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx






Re: Team Foundation Server - Version Control Smart Labels and Changeset Dump

Richard Berg MSFT

Here's an example function that does exactly what you need: http://blogs.msdn.com/richardb/archive/2007/02/21/powershell-example-adding-items-from-a-changeset-to-a-label.aspx