a svn hook used to permit changing a svn commit comment while keeping the old comment. (it will concatenate both comments, with date and author included)
it's used by developpers this way :
svn propset svn:log --revprop -r 142 "i forgot to comment : this is new" readme
mkdir /var/log/svn/ mkdir /var/tmp/svn/ (or wherever you want to) chown www-data:www-data /var/tmp/svn/
pre-revprop-change:
REPOS="$1" REV="$2" USER="$3" PROPNAME="$4" ACTION="$5"
if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exec /root/cvs/common/scripts/svn/revprop-change.pl $REPOS $REV $USER $PROPNAME fi
echo "Changing revision properties other than svn:log is prohibited" >&2 exit 1
post-revprop-change:
REPOS="$1" REV="$2" USER="$3" PROPNAME="$4" ACTION="$5"
/root/cvs/common/scripts/svn/revprop-change.pl -p $REPOS $REV $USER $PROPNAME
-p post change
# [1] REPOS-PATH (the path to this repository) # [2] REVISION (the revision being tweaked) # [3] USER (the username of the person tweaking the property) # [4] PROPNAME (the property being set on the revision) # # [STDIN] PROPVAL ** the property value is passed via STDIN.