检出文件清单 [英] List of checked out files

查看:54
本文介绍了检出文件清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将VSTS与Server Workspaces配合使用,并强制执行单用户签出锁定. 我想获取当前检出哪些文件以及向谁检出文件的列表.

We are using VSTS with Server Workspaces and enforce single user check-out locking. I'd like to get a list of what files are currently checked out and to who.

有可能吗?

注意:我们正在使用Visual Studio 2017社区版

Note: we are using Visual Studio 2017 Community Edition

推荐答案

我们无法直接实现这一目标.

We cannot straightforward achieve that.

不过,您可以在开发人员命令提示符下的命令下面运行,以使Visual Studio获取待处理的更改详细信息.有关详细信息,请参见状态命令. >

However you can run below commands in developer command prompt for visual studio to get the pending changes details. See Status command for details.

  1. 获取用户拥有的工作区列表.这将为您提供用户在其拥有的所有计算机中的所有工作区.

  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

当前已检出哪些文件的列表(获取所有 使用以下命令在所有工作空间中执行待处理的更改"(如果要从特定工作空间中检索待处理的更改,请提供特定的工作空间名称)

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:*
    

  • 您也可以尝试使用工具 Team Foundation Sidekicks ,它可以检索锁定状态/由其他用户签出.但是很遗憾,它不支持VS 2017,最新版本仅Version 6.0仅用于 Visual Studio 2015 .

    You can also try the tool Team Foundation Sidekicks, it can retrieve the status locked/checked out by other users. But unfortunately it's not support VS 2017, the latest version is Version 6.0 only for Visual Studio 2015.

    但是这些不会检索有关远程本地工作区中待处理更改的详细信息.

    这篇关于检出文件清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆