TFS: pending checkin from missing computer
On a daily basis, developers use versioning control software like Microsoft's Team Foundation Server. A problem that arises from time to time is a pending checkin from a user that has left the company, or worse yet, a computer that is missing either because it was damaged or taken away.On TFS, to solve these issues, you can use the TF.EXE command line tool. To use it you should open a command prompt window:
After opening the command prompt, you need to have identified the following information:
- Name of the computer where the workspace used to be hosted;
- Windows username used to logon to Team Foundation Server;
- The TFS Web URL
The TFS URL should be something like: http://yourhost:8080/tfs/web/
In the example I called the server "yourhost" and assumed it to be listening on port 8080.
With these key pieces of information, you should be able to run the command:
tf workspace /delete {computername};{username} /server:{TFS URL}
You should replace the contents in braces with your own. Executing the statement should get a warning like the following:
A deleted workspace cannot be recovered.
Workspace 'computername;username' on server 'TFS URL' has X pending change(s).
Are you sure you want to delete the workspace? (Yes/No)
If you answer "Yes" the workspace will be erased, along with all pending locks. The checked in changesets, done before this workspace deletion will not be affected.
HTH.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment