查找TFS中所有锁定的文件
我想查看所有被锁定的文件。 到目前为止,我只发现使用 tf.exe status 并查找带有“!”的任何内容 因为它们不像在 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果您安装了电动工具,那么这是一句简单的话:
如果如果您更喜欢 GUI 而不是脚本,请尝试 TFS Sidekicks。
If you have the power tools installed, it's a one-liner:
If you prefer GUIs to scripts, try TFS Sidekicks.
如果您尝试使用 TFS Sidekicks,但不知道如何使用,可以在“工具”、“Team Foundation Sidekicks”、“Status Sidekick”下找到。 您将需要展开该窗口,但随后您将能够搜索用户名的锁。
If you are trying to use TFS Sidekicks, and can't figure out how, it is under Tools, Team Foundation Sidekicks, Status Sidekick. You will need to expand that window, but you will then be able to search for locks for a username.
我认为使用 tf.exe< 是不可能的/a> 甚至 tfpt.exe(Power Tool 命令行)< /a>. 您需要查看待处理的变更集以查找属于锁定的变更。 您可以使用 Power Tool commandlet 在 powershell 中执行此操作,或者您可以使用以下运行 TFS API 的 .NET 代码来完成此操作:
I don't think this is possible using tf.exe or even tfpt.exe (The Power Tool command line). You'll need to look through the pending changesets for changes that are locks. You could do this in powershell using the Power Tool commandlets or you could do it using the following bit of .NET code that exercises the TFS API:
从命令提示符
然后从 powershell 执行以下操作:
from your command prompt
Then from powershell do:
我找到了一个 GUI 选项。
就这么简单:)
I've found a GUI option.
That simple :)