Find all locked files in TFS

前端 未结 5 1096
粉色の甜心
粉色の甜心 2021-02-04 03:48

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

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 04:14

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

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

    If you prefer GUIs to scripts, try TFS Sidekicks.

提交回复
热议问题