As someone else said, "which platform." On Windows, I used "blat", which is a free command-line SMTP email program, as well as post-commit and another batch file.
A post commit looks like this: (just calls another batch file)
call d:\subversion\repos\rts\hooks\mail %1 %2
And mail.bat looked like this:
copy d:\subversion\repos\RTS\hooks\Commitmsg.txt %temp%\commit.txt copy d:\subversion\repos\RTS\hooks\subjbase.txt %temp%\subject.txt svnlook info -r %2 %1 >> %temp%\commit.txt echo Revision %2 >> %temp%\commit.txt svnlook changed -r %2 %1 >> %temp%\commit.txt svnlook author -r %2 %1 >> %temp%\subject.txt c:\utils\blat %temp%\commit.txt -t <me@my.email.com> -sf %temp%\subject.txt -server ServerName -f "SVN Admin <svn@my.email.com>" -noh2
The biggest problem with writing SVN interceptors is that you may have no environment settings at all - no exe path, no temporary path, etc. Although possible, this has improved in later versions of SVN.
Will Dean Aug 11 '08 at 22:31 2008-08-11 22:31
source share