Send Email on Subversion Commit

Send Email on Subversion Commit

Posted by: rprins
Posted on: 2006-06-07 20:00:00

I'm wondering... is it possible to send an e-mail via the post-commit hook with DH's SVN setup? If so, where do I define the hook? More so, where would the hooks be defined? Also, what does the .tmpl file look like to send the e-mail?

I appreciate any feedback that you all have. Thanks!

Re: Send Email on Subversion Commit

Posted by: spwebb
Posted on: 2006-06-09 14:31:00

Yes! Email notification is one of the cornerstones of SVN.

The template you're looking for is:

/home/<username>/svn/<REPO_NAME>/hooks/post-commit.tmpl

Save the hook without the .tmpl and you're off!

There are options to specify the to:, from:, and subject: of the notifications. If you need details, send me a PM.

Tags: send emailcommithookmailsvnsubversionhooksfeedbackappreciate