[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Automatically requiring locks for binary files

From: Jon Hardcastle <jd_hardcastle_at_yahoo.com>
Date: Mon, 14 Jan 2008 14:06:32 +0000 (GMT)

--- "J. Christian Hesketh" <ionchannels_at_gmail.com>

> Hi,
> We are using tortoise/CVS to manage mainly word
> documents, excel
> spreadsheets etc... (ie, binary files). We want to
> automatically require a
> lock for files with specific extensions (eg, .doc,
> .xls, .ppt etc...). Is
> there a way to do this automatically with tortoise?
> Thanks in advance,
> Christian Hesketh

You have to set the 'svn:needs-lock' property on all
the file's you want to be 'read-only' until such time
as you get the locks.

you can use the 'auto-props' to set the property
automatically for NEW files - attatched is my - quite
comprehensive config file for doing this.

Note the extensions in there are case SENSITIVE hense
if you want .doc you need to say [Dd][Oo][Cc] to cover
all combinations.

If you want to apply this to EXISTING files. You must
checkout the HEAD of your repos.. and run the script
'svn_apply_autoprops py' which looks for your config
files and applys the settings in there to your working
copy. Once this is complete you can check-in and you
have your properties.

I hope you found my first attempt to help others as I
have been help.. useful!

N: Jon Hardcastle
E: Jon_at_eHardcastle.com
'The writing is on the wall...'

To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

Received on 2008-01-14 15:06:39 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.