How to reverse a check-out (force check-in)

Is there a way to reverse a checkout from an admin tool. We have two situations.

1. A developer checks out some code but forgets to check it in. They then leave for the weekend, but a situation arrises where another developer needs to fix an issue. We need to reverse the checkout of the first developer.

2. A developer upgrades to a new machine and names it something different than a machine that had some source checked out. The developer thought they had checked everything in, but there were some files not checked in. We need to override the checkout of that developer as his original machine is now gone.

Thanks in advance.

[659 byte] By [davidc1110] at [2008-2-22]
# 1

For the first you may use tf command line lock command (with /lock:none spec). See MSDN for reference. I believe you must have appropriate permissions for that ("Unlock other users' changes")

For the second tf command workspaces may be used (with /updateComputerName spec). See MSDN for reference or you might want to use Workspace Sidekick utility for workspace management, including computer name updates.

Yours truly

eugene.z at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Administration...

Visual Studio Team System

Site Classified