12

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?

Zoe
  • 23,712
  • 16
  • 99
  • 132
coding4fun
  • 7,611
  • 9
  • 53
  • 76

1 Answers1

21

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

Betty
  • 8,919
  • 1
  • 32
  • 48
  • I want to make exclusive locks too, but even after doing these two things you said, "check out lock" option doesn't appear (not to mention no exclusive check out happens) when right clicking and chosing "check out". Only "unchanged" and "check in". What else am I could be missing? – Andrius Naruševičius May 27 '13 at 07:23
  • 2
    Are you using TFS2012 with local workspaces? they work completely different. You need to use server workspaces to enable the locking features. – Betty May 27 '13 at 20:11
  • If using VS Online, you need to connect from Visual Studio, and in the Team Explorer window go to Settings. There will be two "Source Control" options under settings, the one under Team Project Collection contains these settings. – AaronLS Oct 31 '15 at 07:44
  • I'm using TFS 2015 with VS 2012 and VS 2015 and this does not seem to be sufficient. I can still checkout files on both VS's. Before we where using TFS 2012 which was working. – F.H. Nov 02 '17 at 13:55