I've recently been asked to help someone determine what files they have checked out in TFS.
Knowing that the Visual Studio Team System IDE (I'm using VS TS 2008) is
abysmal at helping give basic information like this, and not feeling like installing any other third party add-ons, I did a quick
Google search and discovered the
VS Team System TF command-line program.
I'm only going to show you
how to check on statuses of items across all TFS server sites/projects, feel free to do further investigation if you want to get trickier and be more filter savvy. The below serves my purposes more than adequately. Obviously, user your own TFS server location and so on.
- Open Visual Studio 2008 Command Prompt
- To see everything that is checked-out/locked across all TFS sites
tf status /user:* /s:http://tfsweb:8090/
- To see everything that is checked-out/locked across all TFS sites by a specific user, plug-in the username (round of applause for our eager volunteer Joe)
tf status /user:joe.soap /s:http://tfsweb:8090/
- If you're keen to learn more about the inner workings of the program type
TF /?
(etc, you know how to do it) to read up on the various options
SHOULD work with VS Team System for 2005, but I've not tried it.
Obviously, USE with care, this is quite a powerful little command line app.
The above with help from, and thanks to...
http://blogs.vertigosoftware.com/teamsystem/archive/2006/07/24/3125.aspx
http://blogs.msdn.com/buckh/archive/2006/01/10/511188.aspx