[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: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-03-20 15:20:05 CET

You can also specify --config-dir and point to a common config file.

You can just write a simple wrapper or alias around the svn client to
always use that config file.

Eric

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2007a@ryandesign.com]
> Sent: Tuesday, March 20, 2007 1:05 AM
> To: Dong, Yanrui
> Cc: users@subversion.tigris.org
> Subject: Re: How can I get files locked as default
>
> 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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 20 15:20:50 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.