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

Re: How can I get files locked as default

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-20 08:04:48 CET

On Mar 19, 2007, at 07:13, Dong, Yanrui wrote:

> I want to use SVN for many configuration-files in excel-format. We
> want to have that every time only one person is allowed to make
> changes on it. How cab I set the files locked as default, so that
> SVN allowed me only to read it, if somebody is making changes on it?

Hi. You can configure the client to automatically add the svn:needs-
lock property to files with a certain extension (like .xls). The
feautre is called auto-props (automatic properties) and is described
in further detail in the book at http://svnbook.org as is locking.
The file you want to edit is ~/.subversion/config (on Unix-like
machines, anyway; on Windows the file is elsewhere).

Since this is a client-side setting, it is up to each user to
configure their system this way. To ensure that they do, you can
write a pre-commit hook which would reject the commit of any .xls
file which did not have the svn:needs-lock property.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 20 08:06:06 2007

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

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