[Go] Force cancel check out of other members in TFS2008

Source: Internet
Author: User

This article transferred from: http://www.cnblogs.com/georgehu/archive/2010/10/23/1859573.html

There was a project where the former members left, and just checked out a file in TFS and locked it, causing subsequent maintenance to fail to check in and build. Looked up on the Internet, found the following solutions

1. In the command line, enter "CD C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" (TF program in folder) 2, find the workspace used by that person, operate as follows: TF workspaces/owner:liuxc/server:http://xxx.xxx.xxx.xxx:8080

3. View the person's pending changes: TF status/server:http://xxx.xxx.xxx.xxx:8080/workspace:*/USER:LIUXC

4, revoke his check out (mandatory), the operation is as follows:

TF Undo/workspace:jiaoyun (workspace name); MJ (user name) $/xxx/xxxxx/aaa.csproj (the path where the file resides)/server:http://xxx.xxx.xxx.xxx:8080 (TFS Server)

For example:

This brother is more sloppy, leaving when a lot of project files are in the editing state, a change like this is too bad, fortunately TF has such parameters

 

parameter

description

workspacename

User-supplied   /workspace   option.

workspaceowner

Specifies the name of the user who created the workspace.

servername

User-supplied   /server   option. Example: Teamfoundation2.

itemspec

Identifies the file or folder from which to remove pending changes. For more information about how Team Foundation parses item specifications to determine which items are within range, see!--? xml:namespace prefix = "mshelp"/--> command-line options.

options

description

/workspace

Specifies the name of the workspace in which to undo pending changes. If this option is not specified and you are running the command from a directory that has been added to the workspace, the current workspace is used.

/server

Identifies Team Foundation server. This option is required if a directory that has never been mapped to a workspace invokes a command.

/recursive

According to &N Bsp itemspec  recursively revokes changes.

/noprompt

Suppress any prompts that you want to enter.

This allows you to undo all of the checked-out items under this item LIUXC all changes

---------------------------------------------------------------------------------------------------

PostScript: TF command is a relatively good command, just do not understand why not in Team Explorer to provide such a function, not to use the command line, in fact, like this operation in Team Explorer only need to limit the administrator has permission to operate on it, And in the TFS2010 Team Explorer like no this function, do not know what Ms Dozen ideas

The help of the TF command is also easy to access simply type TF Help or TF MSDN to

Online also some people say that the direct operation of the database, so personally feel more dangerous, so it is not recommended

The article refers to the following

http://blog.163.com/[email protected]/blog/static/102300932010220311427/

Http://hi.baidu.com/zetz/blog/item/3acffef0d48171a5a50f520e.html

[Go] Force cancel check out of other members in TFS2008

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.