You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Luis Augusto Lima <la...@gmail.com> on 2011/09/14 22:19:31 UTC

Lock Changes in a Project Tree

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!

Thanks

-- 
Luis Augusto Silva Lima

Re: Lock Changes in a Project Tree

Posted by Luis Augusto Lima <la...@gmail.com>.
thanks,

I gona look.

-- 
Luis Augusto Silva Lima

Re: Lock Changes in a Project Tree

Posted by Stephen Butler <sb...@elego.de>.
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