Report abuse

$REPO/hooks/pre-revprop-change


			
#!/usr/bin/env bash

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then
  (
    echo "Revision: $REV"
    echo "User: $USER"
    echo
    echo "Log message: "
    echo "---------------------"
    cat
  ) \
    |mail -s "svn:log changed on $REV" tim@spork.in
  exit 0
fi

echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1