Wednesday, April 15, 2009

Undocumented Feature

I don’t know why it never occurred to me before to use a wildcard to move files in TFS but it didn’t. Now I hardly ever have to move files around in the source repository but the occasion has occurred a few times. The first time I moved each file individually…what a pain; luckily there weren’t very many files. Now I know I can use the wildcard feature which is not listed in the command documentation but is very handy.

This is not available in the Team Explorer client, you need to use the TF.EXE command line utility found in the Visual Studio install directory under Common7\IDE\TF.EXE on my box it looks like:

C:\>cd Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE


Now if you check the parameters available for the move command (alias of the rename command) you will find that it’s very straightforward, but no mention of a (*) wildcard.



C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>tf move /?
TF - Team Foundation Version Control Tool
Copyright (c) Microsoft Corporation. All rights reserved.

Changes the name or the path of a file or folder. You can use the rename
command or the alias move, to move a file or folder to a new location.

tf rename [/lock:(none|checkout|checkin)] olditem newitem


You can execute the command with a wildcard by entering something similar to:



C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>tf move "$/source /old location/*" "$/source/new location/*"


This of course has been a huge time saver and keeps me from beating my head against the desk. An easy and very obvious use of the command that I missed the first time around, so I thought I’d pass it along just in case you might have missed it too.



A word of caution: The wildcard works equally well for folder as it does for files.

Thursday, February 19, 2009

Hurry...ends on April Fools Day

At the user group meeting last night Notion Solutions presented thier tools for team system. But I didn't get to go. So as soon as I heard the scoop today I had to download them and get them going on our development server.

The tools have been available for a couple of weeks now. Please grab a copy and test them out. We'll be doing the same here in our shop along with our other TFS toys. We've worked with the guys at Notion for a long time, so I'm anxious to put these tools through thier paces and see all the cool little features they've packaged up for us!

Wednesday, February 18, 2009

TFS sync with Quality Center

If your shop is like mine...the developers don't really care for Quality Center and the testers don't like TFS. We tried to use this tool to get the best of both worlds but it was painful to configure and was a very frail product for our shop.

I don't know how I missed it but about a month ago Brian Harry blogged about the TFS 2008 - HP Quality Center Connector. Now there is hope that a sync tool will fill our gap between developer and tester. I don't have enough info on the Microsoft | HP tool to say if it's better, worse, or about the same as the other. But as soon as I can I'll post what we've found interesting.