The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream




    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,517 other followers

TFS: Undoing a checkout that belongs to another user – via TFS Version Control and more

Posted by jpluimers on 2010/07/01

I recently needed to undo a TFS checkout from a user on another workspace.
This particular user had an exclusive lock on the document, was scheduled to be away for considerable time, and I was supposed to finalize that document.

I know that performing the undo is not possible from the Visual Studio UI: you need use the TF command-line application for this kind of work.

Fiddling on my own with the TF undo syntax didn’t get me the results right away, so I was glad to find this “Undoing a checkout that belongs to another user” post by mrod (Mario Rodriguez) from Microsoft.

The trick was to include the bold part:

tf undo /workspace:OtherUserWorkspace;OtherUser $/Project/ItemName.cs /s:http://yourtfsserver:8080

You have to be TFS admin to do this.
Since I was on the same TFS server, I did not have to include the /s: part.

Another project finished :)


via Undoing a checkout that belongs to another user – TFS Version Control and more .. – Site Home – MSDN Blogs.

3 Responses to “TFS: Undoing a checkout that belongs to another user – via TFS Version Control and more”

  1. […] to Override/Undo a Check Out (TFS Power Tools, “Find In Source Control”):… LD_AddCustomAttr("AdOpt", "1"); LD_AddCustomAttr("Origin", "other"); […]

  2. Anthony Monsees said

    This can also be accomplished within Visual Studio if you have the TFS power tools installed. You have to do a “Find in Source Control” to list all the checked out files and then right click and select undo.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 1,517 other followers

%d bloggers like this: