我们在使用带有服务器工作区的VSTS,并强制实施单用户检出锁定。我想获取当前已被检出以及由谁检出的文件列表。
请问这个操作是否可行?
注:我们使用的是Visual Studio 2017社区版。
请问这个操作是否可行?
注:我们使用的是Visual Studio 2017社区版。
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
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:*
To get all changes from all users you can use command below:
tf stat $/0522TFVCScrum /recursive /collection:https://xxx.visualstudio.com/DefaultCollection /user:*
版本6.0
。
但这些工具将无法检索远程本地工作区中待处理更改的详细信息。