svnnotify looks reasonable (read the man page). It generates HTML email with colored diffs (not as nice as Trac’s diff engine) and is configurable via CLI options to send email to different addresses based on regular expression matches against the directories affected by the commit.
Example: put this in “/repo/hooks/post-commit”
#!/bin/sh REPOS="$1" REV="$2" /opt/perl/bin/svnnotify \ -p $REPOS \ -r $REV \ -C -d -H HTML::ColorDiff \ --from firstname.lastname@example.org \ --reply-to email@example.com \ -x firstname.lastname@example.org="^foo/" \ -x "email@example.com,firstname.lastname@example.org"="^big_framework/" \ -x email@example.com="^one|^two|^three"
Can anyone suggest a good diff script?
Anybody know offhand if Trac uses a standalone diff engine that I could hook up to svnmailer?