2016年11月7日 星期一

[SVN] Edit log message result in pre-revprop-change error

Go to repository
vim hooks/post-revprop-change

#!/bin/sh
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
if [ "$ACTION" = "A" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi

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

Modify file permission
chmod 755 hooks/post-revprop-change

Reference:

0 意見:

張貼留言