Lock Binary Files on Checkout

Is there a way to force a check-out lock on binary files when they are checked out? Since you cannot merge these files, wouldn't it make sense to automatically lock them on checkout? Seems like disastrous consequences are looming without this capability since someone will check their changes in over a previous checkin changes.

Thanks.

[352 byte] By [simdoc] at [2008-2-18]
# 1
Lots of common binary files are set to non-mergeable (exclusive lock) by default. You can customize which file extensions are mergeable via Team -> TFS Settings -> Source Control File Types.
RichardBergMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 2

Adding a file as binary to the extension list implies exclusive lock checkout?

If it does, that's great and will solve my issue.

simdoc at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 3
Yes, if you uncheck "enable file merging and multiple checkout."
RichardBergMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 4

Thanks, that seems to work. However, you probably want to consider adding the following default items:

Microsoft Office:

  • *.vst - Visio templates
  • *.xla - Excel addins

Database files:

  • *.acb; *.acn; *.acq - Microsoft Access database checkins through the MSSCCI provider/Access Source Control addin.
simdoc at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 5
Richard or I will get a suggestion filed to add these to the default list (it's a little late for the RTM version, unfortunately). Good catch.
CRathjen-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 6

Keep in mind that using locking based on file extension can make life difficult when unshelving those changes.

http://blogs.msdn.com/buckh/archive/2006/01/10/511188.aspx

Buck

BuckHodges at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...

Visual Studio Team System

Site Classified