Thursday, January 21, 2010

TFS dangling edits, locks, and changes... eliminate!

Got an colleage who recently left the company for "greener pastures". He used TFS with the rest of us and all was well.

Last night I get an email from a buddy in California. Hey, John, dude, buddy, friend, I can't get to this file because Former Colleague has an edit lock. Can you help?

So... TFS can do this, if you have admin rights on workspaces.

First, get all of the workspaces that person has...
tf workspaces /owner:fcolleague

Then recursively destroy all their pending work...
tf lock /lock:none /workspace:WorkspaceName;USERNAME /recursive $/

Or you can obliterate the whole workspace...
tf workspace /delete workspacename[;workspaceowner]

No comments:

Post a Comment