在 TFS 中查找所有锁定的文件 [英] Find all locked files in TFS

查看:30
本文介绍了在 TFS 中查找所有锁定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想查看所有被锁定的文件.到目前为止,我只发现使用 tf.exe 状态并查找带有!"的任何内容.因为它们不像在 UI 中那样被报告为锁定,编辑".有任何想法吗?谢谢.

I would like to see all files that are locked. so far, I've only found to use tf.exe status and look for anything with '!' because they are not reported as "lock, edit" as they are in the UI. Any ideas? thanks.

推荐答案

如果您有 电动工具 已安装,它是单行的:

If you have the power tools installed, it's a one-liner:

tfstatus . -r -user * | % { $_.pendingchanges } | ? { $_.islock } | select -unique serveritem

如果您更喜欢 GUI 而非脚本,请尝试 TFS Sidekicks.

If you prefer GUIs to scripts, try TFS Sidekicks.

这篇关于在 TFS 中查找所有锁定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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