已检出文件清单

3
我们在使用带有服务器工作区的VSTS,并强制实施单用户检出锁定。我想获取当前已被检出以及由谁检出的文件列表。
请问这个操作是否可行?
注:我们使用的是Visual Studio 2017社区版。
1个回答

5
我们无法直接实现这一点。
但是,您可以在Visual Studio开发人员命令提示符中运行以下命令以获取待处理更改的详细信息。有关详细信息,请参见状态命令
  1. Get the list of workspaces users have. This will provide you all the workspaces of the users in all the computers they have.

    tf workspaces /computer:* /collection:https://xxx.visualstudio.com/DefaultCollection

  2. List of what files are currently checked out (get all the pending changes) in all the workspaces using below command (Just provide the specific workspace name if you want to retrieve the pending changes from a specific workspace):

    tf stat $/0522TFVCScrum /recursive /collection:https://xxx.visualstudio.com/DefaultCollection /workspace:*
    
  3. To get all changes from all users you can use command below:

    tf stat $/0522TFVCScrum /recursive /collection:https://xxx.visualstudio.com/DefaultCollection /user:*
    
你也可以尝试使用Team Foundation Sidekicks工具,它可以检索其他用户锁定/签出的状态。但不幸的是,它不支持VS 2017,最新版本仅适用于Visual Studio 2015版本6.0但这些工具将无法检索远程本地工作区中待处理更改的详细信息。

enter image description here

enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接