Here is a simple script to allow updating your Subversion commit messages and have the repository admins receive a nice email message with the change.Put the following into the file hooks/pre-revprop-change
in your repository (on the server) and chmod 755
:
#!/bin/sh # Begin configuration recipients="user1@example.com user2@example.com" # End configuration repos="`cd && pwd`" rev="#!/bin/sh # Begin configuration recipients="user1@example.com user2@example.com" # End configuration repos="`cd $1 && pwd`" rev="$2" user="${3:-repo admin}" propname="$4" action="$5" if [ "$action" = "M" -a "$propname" = "svn:log" ]; then  (echo "Updated from"   echo "============"   svnlook propget --revprop "$repos" -r "$rev" "$propname"   echo ""   echo "Updated to"   echo "=========="   cat  ) | Mail -s "[svn:$repos] $user updated svn:log for revision $rev" $recipients  exit 0 fi echo "Changing revision properties other than svn:log is prohibited" >&2 exit 1 " user="${3:-repo admin}" propname="" action="" if [ "$action" = "M" -a "$propname" = "svn:log" ]; then  (echo "Updated from"   echo "============"   svnlook propget --revprop "$repos" -r "$rev" "$propname"   echo ""   echo "Updated to"   echo "=========="   cat  ) | Mail -s "[svn:$repos] $user updated svn:log for revision $rev" $recipients  exit 0 fi echo "Changing revision properties other than svn:log is prohibited" >&2 exit 1
This is adapted from the hook template created as part of the repository. Feel free to adapt it to your needs.
Then, on your next (as admin on the server)
svnadmin setlog <em>/path/to/repository</em> -r <em>123</em> <em>/path/to/new/log</em>
or (as user in the working directory)
svn propedit -r <em>123</em> --revprop svn:log .
the users listed in the $recipient variable will receive a mail such as:
<strong>From:</strong> admin@example.org <strong>To:</strong> user1@example.org, user2@example.org <strong>Subject:</strong> [svn:/path/to/repos] joe.user updated svn:log for revision 123 Updated from ============ This was the old log message Updated to ========== This is the new log message