问题
When using a server workspaces is there any way to automatically acquire a checkout lock. I know you can go through Tools-->Options and under "Check-in Items-->Edit" specify "Prompt for lock on checkout" but we want it to automatically happen and not have to throw a dialog in their face and make them choose a checkout lock. We are in the process of migrating to TFS from sourcesafe and we have a few users that don't need the flexibility of local workspaces and/or multiple checkouts. They are going to freak out if they ever get a merge conflict dialog. Any way to make tfs act just like sourcesafe?
回答1:
Disable multiple checkouts
Team -> Team Project Settings-> Source Control -> Untick "Allow Multiple Checkouts"
Set Server Workspaces to be the default
Team -> Team Project Collection Settings-> Source Control -> WorkSpace Settings -> Server Workspaces
来源:https://stackoverflow.com/questions/13069584/automatically-acquire-a-checkout-lock-when-checking-out-tfs2012