【转】Repository has not been enabled to accept revision propchanges

时间:2023-03-08 16:49:12
【转】Repository has not been enabled to accept revision propchanges

转载地址:http://lg-zhou.blog.163.com/blog/static/178068920111179341041/

使用SVN提交版本信息时,注释内容写的不全。通过右键TortoiseSVN的Show log看到提交的的注释,右键看到Edit log message的选项,然而提交后却给出错误提示:

Repository has not been enabled to accept revision propchanges;

ask the administrator to create a pre-revprop-change hook

通过网上查阅资料得到解决方法,编写批处理文件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


然后放到\Repositories\SVN文件夹\hooks\下执行即可。