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

Re: Hook to restrict user from deleteing source code from svn repository

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: Mon, 2 Mar 2009 16:01:43 +0100

On Mon, Mar 2, 2009 at 2:52 PM, Irfan Sayed <irfu.sayed_at_gmail.com> wrote:
> Hi All,
>
> I need to write one hook (trigger in case of clearcase) which will restrict
> user from deleteing any source code file from svn repository eventhough he
> has read/write access on that file.

Even though all users have write access, you will never actually
delete the file: it's still there in older revisions.

> Can it be possible.

That said, it's possible, yes. See svnperms.py at
http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/

>
HTH,

Erik.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1256632

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-02 16:02:40 CET

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.