Windows 系统,TortoiseSVN 无法修改 Log 信息解决方法

使用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\下执行即可。

相关推荐
▍ 小太阳 ☼3 天前
如何让Codex读svn项目
svn·chatgpt
云小逸5 天前
【SVN 详细使用指南:从入门到团队协作】
c++·svn
曹牧23 天前
Eclipse:SVN 回复
java·svn·eclipse
NexTunnel25 天前
公司老项目还在 SVN,远程维护怎么做更稳?
git·svn·gitlab·远程工作·nextunnel
鱼听禅1 个月前
CentOS 源码模式配置SVNAdmin2管理SVN仓库
linux·svn·centos
_阿伟_1 个月前
SVN简单使用教程
svn
NexTunnel1 个月前
告别传统组网,也能安全访问公司 GitLab / SVN
安全·svn·gitlab
2601_961875242 个月前
花生十三公考课程|网课|视频
数据库·windows·git·svn·eclipse·github
2601_961875242 个月前
花生十三资料网盘|百度云|下载
数据库·windows·git·svn·eclipse·github
WSKH09292 个月前
【操作记录】Mac 系统安装并使用 SVN
macos·svn