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

Re: pre-commit hook: dont allow given diretory's and file-types

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-12 10:28:41 CEST

On Jul 12, 2007, at 03:07, Pieter wrote:

> Ryan Schmidt wrote:
>
>> This shouldn't be too difficult. In the pre-commit hook, you'll
>> want to
>> run "svnlook changed" on the transaction, and for each line of
>> output,
>> see if it matches one of the things you want to disallow.
>>
>> Or you may be able to just write a configuration file for
>> svnperms.py to
>> do this for you.
>>
>> http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/
>
> Thanks, but... err..., this is difficult for me, hehe I don't have
> a clue to
> do such a thing with Perl :-) Isn't there anybody who could help me
> a little
> bit with such a script?

Then have you looked into svnperms? All you would need to do there is
look at their example configuration file and see if you can use that
information to write a configuration file that meets your needs. And,
well, you would need to write a one-line hook script which calls
svnperms, and you'd need to install Python if you don't already have
it on your server.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 12 10:28:44 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.