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

Re: Prevent users from commiting in tags/

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 23 Apr 2009 12:42:40 -0400

On Thu, Apr 23, 2009 at 8:24 AM, Andrey Repin <anrdaemon_at_freemail.ru> wrote:
> Greetings, Subversion Users!
>
>> I have here a repository running where the users commit there canges
>> over ssh with scponly as shell.
>> I want now to deny commits into the tags directory.
>> (only copy to tags should be allowed)
>
>> I think it should be possible with a hook.
>> Has here anyone a solution?
>
> Why you need hooks?
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1584335

As some people have pointed out, you can lock down the tags directory
via the configuration except for a few users who are allowed to create
tags. There are a few problems with this:

* Users have to go to the tag-creating user to get their tags made.
* If the tag creating user is also a developer, there is still a good
possibility that user would accidentally update the tag.

The Python pre-commit hook allows you to specify that a directory is
"add-only" for a particular set of people. See
http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and take a
look at svnperms.py and svnperms.conf.example.

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1879979
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-23 18:43:38 CEST

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