- Installing Subversion and setting it up as a Solaris 10 service
- Setting up Subversion as a Solaris 10 inetd service
- Setting up projects to control resource usage
Intercepting Subversion events
Subversion lets you hook programs to be executed when certain events are fired. The current version of Subversion lets you hook into:- pre/post commit
- pre/post lock
- pre/post revprop-change
- pre/post unlock
Post-commit hook parameters
Subversion passes the following positional parameters to the hook scripts:- repository path
- revision number (after the commit)
An example script
I always use a layer of indirection if it makes sense to me. In this case I chose to do the same and my example script just invokes another one, passing by the parameters received by Subversion. No secrets, here, just a one liner.Sending emails
The problem now reduces to sending email from your host. This may depend on your system configuration and on your tastes. You could use mailx, mutt or even sendmail directly. The Subversion developers suggest using their mailer.py to send emails. Setting it up is pretty easy and you'll also find a configuration file and some tests on Subversion website.Next steps
You can now:
- Read this post about how to set up Subversion as an inted service.
- Read this post about how you can set up Solaris projects or zones to control resource usage.
- Read this post about setting up SSH access to Subversion repositories.
- Read this post about filtering Subversion commit using a post-commit hook.
No comments:
Post a Comment