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

Re: Lock Changes in a Project Tree

From: Stephen Butler <sbutler_at_elego.de>
Date: Fri, 16 Sep 2011 14:49:06 +0200

On Sep 14, 2011, at 22:19 , Luis Augusto Lima wrote:

> Hi,
>
> I need to lock the creation of directories in a project versioned with SVN. Authorized users can change and/or add archives, but when they try to add an directory, SVN block this commit.
>
> I know that this can be done with a pre-commit hook, but I have no ideia how can I do this.
>
> Any sugestions, please!

Hi
Have a look at the "enforcer", a Python script that you can run from
the pre-commit hook.

  https://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/enforcer

Regards,
Steve

--
Stephen Butler | Senior Consultant
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
tel: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
Received on 2011-09-16 14:47:54 CEST

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.