一直用SVN作为代码备份,但是今天偶然发现SVN上不能修改意见提交的代码,于是乎开始谷歌了,最后发现只需要在该工程下的hooks目录下放入pre-revprop-change.bat文件即可。
pre-revprop-change.bat的内容为:
SET REPOS="%1" SET REV="%2" SET USER="%3" SET PROPNAME="%4" SET ACTION="%5" IF %ACTION% == "M" (IF %PROPNAME% == "svn:log" (EXIT 0)) ECHO "Changing revision properties %PROPNAME% is prohibited" >&2 EXIT 1