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

Re: apply svn:needs-lock to new files as they are added?

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2005-09-08 19:06:19 CEST

Ryan Schmidt wrote:
> On Sep 8, 2005, at 18:42, plabonte@gmail.com wrote:
>> Is there a hook script that will add this property to all newly added
>> files?
> No... what you would probably do though is to distribute to your users
> a config file which has an auto-props definition which adds the
> svn:needs-lock property to all files (or all .png files or whatever you
> want), and then write a pre-commit hook which rejects commits which do
> not have the property set on such files.

Cool, I was just about to think of implementing something like that.
I had a Perl script run by a cronjob to fix things regularly as adds to our
repos are very rare. The rest is user education.

Now that I have figured out which files need to be locked and which files need MIME set,
I can write such file and put it on our dev server for download.


|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 8 19:08:50 2005

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.