Reputation: 47
I know we can go to solutions explorer and select files to do check in lock, but this is slow. Is there any extension or option to just do check in lock on all the files with pending changes?
Upvotes: 2
Views: 631
Reputation: 51183
If what you are talking about is check-in lock. For example:
Developer A has checked out $/FabrikamTFVC/Main/Source/FabrikamFiber.CallCenter/FabrikamFiber.Web/Web.config
in the FabrikamTFVC project with a check-in lock type. So while other users can check out the Web.config
file, no one can check in Web.config until developer A has lifted this lock:
In the following image, Web.config
is checked out with the check-in lock. This is represented by lock in the Pending Change column:
You could download TFS Power Tools and you can see Find by Status under Find in the Source Control Explorer. Then follow the below steps -
- From the Source Control Explorer find the folder containing the locked file(s).
- Right-click and select Find then Find by Status...
- The "Find in Source Control" window appears
- Click the Find button
- A "Find in Source Control" tab should appear showing the file(s) that are checked out
- Right click the file you want to unlock
- Select Undo... from the context menu
- A confirmation dialog appears. Click the Yes button.
- The file should disappear from the "Find in Source Control" window.
Or you could try to use Lock command to remove other users lock for an item. Eg: c:\projects>tf lock /lock:none src/
Update:
You could also create your own customize check in policy to met your requirement. Check-in policy enforces constraints every time when files are checked into TFS source control. The user must meet the policy restriction, then could check in files.
How to please refer this blog: Creating TFS Custom Check-in Policy
Upvotes: 2