TFS

Move a Directory in TFS Source Control

tf rename C:\Projects\App\Project\Trunk C:\Projects\CIBMTR\App\Project\NewDir\Trunk /login:username,password
Tuesday, January 26th, 2010 Software Development, TFS No Comments

TFS – undoing a checkout of another user

Adapted from: http://dotnet.org.za/willy/archive/2008/07/23/tfs-undoing-a-checkout-of-another-user.aspx

List the user’s workspace:

tf workspaces /s:http://server:8080 /login:domian\user,pass /owner:domain\user /computer:* /format:detailed

Undo the checkout:

tf undo /s:http://server:8080 /login:domain\user,pass /workspace:WSName;domain\user "$/project/dir/file.cs"

Tags: , , ,

Thursday, November 19th, 2009 Software Development, TFS No Comments

Listing checked-out files in Team System (TFS)

republished from: http://clay.lenharts.net/blog/2008/01/28/listing-checked-out-files-in-team-system-tfs/

You can get a complete list of checked out files by using the tf.exe command line tool found in: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

All checked out files in $/MyProject:

tf.exe status $/MyProject /user:* /s:http://MyTfsServer:8080 /recursive /login:domain\user,password

All files checked out to Mark:

tf.exe status /user:mark /s:http://MyTfsServer:8080 /login:domain\user,password

You can write the output to a file:

tf.exe status /user:* /s:http://MyTfsServer:8080 /login:domain\user,password > c:\checkedout.txt

Tags: , , ,

Thursday, November 19th, 2009 .NET, TFS No Comments