如何更新SVN旧提交注释/日志消息? [英] How to update SVN old commit comment/log-message?

查看:130
本文介绍了如何更新SVN旧提交注释/日志消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TortoiseSVN并尝试编辑下面的快照中的旧帖子时出现错误.

I'm using TortoiseSVN and get the error when trying to edit my old posts as below snapshot.

我如何使其可编辑?

推荐答案

您需要获取并安装 pre-revprop-change 挂钩脚本,以覆盖禁止编辑日志消息的默认行为.

You need to obtain and install a pre-revprop-change hook script to override the default behavior of disallowing editing log messages.

获取 revprop-change 钩子脚本很简单:Windows版本(来自Philibert Perusse)可从StackOverflow帖子此StackOverflow帖子.)

Obtaining the pre-revprop-change hook script is a simple matter: the Windows version (from Philibert Perusse) is available on the StackOverflow post Common Types of Subversion Hooks. And you already have the Unix/Linux version in your Subversion repository hooks directory. (For an instantly available version, though, see this StackOverflow post.)

安装钩子脚本几乎一样容易.您必须有权访问您的存储库(或与系统管理员联系).然后只需将脚本复制到存储库中的hooks子目录中即可. hooks目录预先装有用于各种钩子的模板. pre-revprop-change.tmpl是包含Unix/Linux版本以及Windows版本说明的模板. (如果您想更多地了解这些挂钩,但无权访问存储库,只需创建自己的虚拟存储库(TortoiseSVN >>在此处创建存储库),然后查看其生成的hooks子文件夹.)

Installing the hook script is almost as easy. You must have access to your repository (or talk to your system admin). Then just copy the script into the hooks subdirectory in the repository. The hooks directory comes pre-populated with templates for a variety of hooks. The pre-revprop-change.tmpl is a template containing the Unix/Linux version, plus instructions for the Windows version. (If you want to explore more about these hooks but do not have access to the repository, just create your own dummy repository (TortoiseSVN >> Create repository here) and look in the hooks subfolder it generates.)

这篇关于如何更新SVN旧提交注释/日志消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆