Tuesday, August 4, 2015

Undo a checkout made by another user in Team Foundation Server

If you have ever been stuck in a situation where you have to checkout a file and it is currently checked out by another user, you may be wondering if you have to wait until the other user checks in the file or not.

Well, provided you have sufficient privileges in TFS to undo other's checkouts or check in other people's changes, you can do something about it!!

There are 2 tools available for you to accomplish this:

  1. Team Foundation Server 2013 Power Tools: https://visualstudiogallery.msdn.microsoft.com/f017b10c-02b4-4d6d-9845-58a06545627f
  2. Team Foundation Sidekicks: http://www.attrice.info/downloads/index.htm#tfssidekicks2013

The easiest tool to use is definitely Team Foundation Server 2013 Power Tools which integrates with Visual Studio 2013.

  1. You simply find the file that is currently checked out to another user in Source Control Explorer
  2.  Then you right click on the file and select Find-->Find By Status
  3. Once you have pulled up the current list of checkouts, you simply select the person's edit you want to undo and select "Undo"







With Team Foundation Sidekicks, the operation requires that you know the owner of the file as well as the data range when you think the file was checked out.  This makes the operation a bit more difficult because it requires date ranges to be known (or guessed):





Once you have found the file that you want, you simply select "Undo pending change" from the icon in the toolbar.

That is all that is necessary to undo another person's checkout from TFS!

No comments:

Post a Comment