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

Re: Hook script to restrict access on per user basis?

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-12-10 19:04:39 CET

Hello Jennifer,

You haven't replied to the list, so I'm so I'm bringing everything back
to the list.

On 10/12/2004 12:37, Jennifer Kesterson wrote:
> Honestly, I can't figure out the hook scripts. It appears they run a
> Perl script (*.pl)? Since I am not a programmer I don't know where to
> begin with them. :-/

Hook scripts are special programs that Subversion executes on certain
specific operations. The one you are interested in is the pre-commit
hook script.

Check your repository's hooks/ folder, to find templates in there.
Depending on your OS, you'll need to rename the existing pre-commit hook
template to *.sh or *.bat (Linux/Windows).

Then, following the instructions in the template, you'll call
svnperms.py with the arguments as listed in svnperms.py. svnperms.py
will return some kind of error to the caller, which will in turn return
a code to Subversion, which will turn around again and tell the client
whether or not his commit was successful.

I hope this was useful. If not, ask again, and someone will clarify.

Bye !

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Fri Dec 10 19:30:45 2004

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.