Posts Tagged ‘hooks’

Setting up a commitlog

Tuesday, February 3rd, 2009

I set up a new mailing list that can be used to track commits to the Subversion repository. Subversion has some hooks that you can use, like post-commit for example. I used this hook to invoke the mailer script every time a commit has taken place.

The mailing script will sent an e-mail to the commit log mailing list with information on the files that have been changed and the diff’s between the previous version along with more general information, like the name of the author and the timestamp of the commit.

You can subscribe to this list from the Support page at the project’s website.

Too bad they still include that deprecated Perl mailer script in the distribution. It took me some time to find out that mailer.conf was only to be used by the Python mailer script. And even then, the Perl version doesn’t support SMTP auth (which I added myself, but that doesn’t matter anymore).