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

Re: Automatic locking of files in repository

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-07-22 20:24:01 CEST

On 7/21/07, Lasse Vgsther Karlsen <lasse@vkarlsen.no> wrote:
> Right-click the file, TortoiseSVN->Properties, and add the following
> property:
> svn:need-lock
> (no need for a value, it will get a value of * automatically, just to signal
> that the property is there)
> Then commit that change, and ask everyone to update. This will make the
> file readonly on everyones machine as they update, and they will be forced
> to lock to make it writeable. This basically, for that file, mimicks how
> other check in/out version control systems work.

But that only works for files presently in the repository, You can set
the property automatically on the client side when files are added
using auto-props, but that's a per-client setting and you can't force
that upon your users from the server. Which means you'll also need to
install a pre-commit hook which rejects any commit with an Autocad
file which doesn't have this property set.

To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sun Jul 22 20:22:55 2007

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