Sign In
Richard Murillo on Software Development
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
C#
Lambda Expressions
LINQ to SQL (DLINQ)
Team Foundation Server
Visual Studio
Archive
Archives
September 2009
(1)
August 2009
(1)
June 2009
(1)
February 2009
(1)
October 2008
(3)
March 2008
(1)
November 2007
(1)
April 2007
(2)
February 2007
(1)
October 2006
(3)
September 2006
(1)
July 2006
(1)
June 2006
(2)
May 2006
(1)
April 2006
(11)
March 2006
(7)
February 2006
(2)
Undo checkout or lock by another user
MSDN Blogs
>
Richard Murillo on Software Development
>
Undo checkout or lock by another user
Undo checkout or lock by another user
Richard Murillo - MS
6 Mar 2006 2:29 PM
Comments
5
Scenario: Another user has locked a file for checkout, but is no longer available to check the file back in and now you need that file.
Unlocking the file
First you will need to get a list of the workspaces for that user. This can be done with administrative rights from the command line as follows:
tf workspaces /owner:DOMAIN\TheirUserAccount /computer:*
The command will retrieve a list of all workspaces on all computers for that user.
You can now use the output information to undo the checkouts on the files you want:
tf undo /workspace:TheirWorkspace;DOMAIN\TheirUserAccount $/path/to/file
In the event the developer is no longer with the company or on the project, you can also delete the workspace which will also undo any pending changes using the following command:
tf workspace /delete TheirWorkspace;DOMAIN\TheirUserAccount /s:http://TFSSERVER:8080
5 Comments
Team Foundation Server
Blog - Comment List MSDN TechNet
Comments
Loading...