Wie jemand anderes sagte, "welche Plattform". Unter Windows habe ich 'blat' benutzt, das ist ein Freebie-Kommandozeilen-SMTP-Mailer, um dies zu tun, zusammen mit einem Post-Commit und einer anderen Batch-Datei.
Der Beitrag begehen sieht wie folgt aus: (ruft einfach eine andere Batch-Datei)
call d:\subversion\repos\rts\hooks\mail %1 %2
Und mail.bat sah wie folgt aus:
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 <[email protected]> -sf %temp%\subject.txt -server ServerName -f "SVN Admin <[email protected]>" -noh2
Die größte Gotcha Haken in schriftlicher Form SVN, dass Sie ist könnte im Grunde keine Umgebung Einstellung - keine Exe-Pfad, keine Temp-Pfad, etc. Obwohl vielleicht das ist in neueren SVN-Builds verbessert.
Die Verbindung (effektiv) gebrochen ist (es leitet auf eine generische Seite). –