最近在提交代码的时候由于将代码关联的项目任务编号写错了,于是想修改过来……

一、问题

  • 首次提交时写错注释

  • 修改注释

  • 错误信息

Repository has not been enabled to accept revision propchanges:

While handling the 'svn:log' property on '/svn/myrepository/!svn/bln/9':
Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook

二、解决方法

1、方法一

  • Repository上右键选择Properties...

  • Hooks页签中选中pre-revision properties change hook并点击Edit

  • 在文本框中输入exit 0

  • 点击确定后,重新修改

2、方法二

Repository所在目录的hooks目录下,新建pre-revprop-change.bat文件并执行:

  • Repository Path

  • 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 
附: