2009/3/26
I'm trying to get the powers that be at work to enable post-commit hooks for our Subversion repositories. Here's the default, sans comments:
REPOS="$1" REV="$2"
commit-email.pl "$REPOS" "$REV" commit-watchers@example.org log-commit.py --repository "$REPOS" --revision "$REV"
Does Python's post-commit.tmpl do more (or less) than this? If it's substantially different, can someone mail me a copy of what's installed?
It's not that different: #!/bin/sh /data/repos/projects/hooks/mailer.py commit "$@" /data/repos/projects/hooks/svn_buildbot.py --repository "$1" --revision "$2" --bbport 9020 > /dev/null /data/repos/projects/hooks/svn_buildbot.py --repository "$1" --revision "$2" --bbport 9070 > /dev/null if (svnlook changed -r $2 $1|grep peps) then touch /data/website-build/build/status/pepqueued fi -- Regards, Benjamin