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 email@example.com \ --reply-to firstname.lastname@example.org \ -x email@example.com="^foo/" \ -x "firstname.lastname@example.org,email@example.com"="^big_framework/" \ -x firstname.lastname@example.org="^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?