How to lock files from Team Foundation Server?
I want to find lock files and lock-unlock these files from Team Foundati开发者_StackOverflowon Server. How can I do that?
If you Check out a file by right clicking on it in Source Control Explorer and selecting Check Out For Edit, you should get three options under Lock Type:
- Unchanged: This allows other users to modify the file and save the changes back to TFS before you have finished with it.
- Check Out: This completely locks the file so that no one else can modify it.
- Check In: This allows other people to modify the file, but prevents them from saving the changes back to TFS until you have finished with the file.
Go to Source Control Explorer, right-click the branch you want to check, find in source control, and then choose status. There you have the option to find checked-out files.
You can use Status Sidekicks tool from TFS Sidekicks toolset to find out all the files which has been locked out. You can unlock them using same tool.
See:
- Lock and Unlock Folders or Files
- Lock Command
精彩评论