revprop-change挂钩失败 [英] pre-revprop-change hook either failed

查看:180
本文介绍了revprop-change挂钩失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这个钩子是否是现成的,或者我的钩子是否被弄乱了,我只需要替换它,但是当我尝试编辑有关提交的日志注释时,我会收到此错误消息:

I don't know if this hook is out-of-box or if mine is just messed up and I just need to replace it but when I go and try to edit a log comment on a commit I get this error message:

DAV请求失败;存储库的prevprop-change挂钩可能失败或不存在
至少一项财产变更失败;存储库未更改
设置属性日志"时出错

DAV request failed; it’s possibly that the repository’s pre-revprop-change hook either failed or is non-existent
At least one property change failed; repository is unchanged
Error setting property ‘log’

我使用的是Tortoise v1.6.7,但是自从我安装Tortoise以来就一直遇到这个问题,只是从没研究过,但是非常烦人.

I'm using Tortoise v1.6.7 but have had this problem all along since I installed Tortoise, just never looked into it but it's extremely annoying.

因此我找到了这篇文章.

但是,由于无法弄清楚如何使用Tortoise进行svn命令行调用,因此我只是进入存储库并打开refprop更改前模板,下面是其中的内容.

However since I can't figure out how to do svn command line calls with Tortoise, I simply went into the repository and opened up the pre-refprop-change template and below is what's in it.

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi

echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1

因此,仍在尝试找出更改方法,以便Tortoise(即Subversion)允许我编辑评论.为什么一个人希望编辑评论?因为有很多次我发现自己错过了x,y,z本来应该放在注释之后的内容,却忘记了在提交后添加更多注释.发生在任何人身上.尽管允许开发人员执行此操作存在安全风险,但我们每2小时备份一次存储库,因此,如果有人经过并删除它们,哦,好吧,我愿意承担这一风险,因为我们对此进行了备份.这种风险不应掩盖随意修改评论的能力.

So still trying to figure out how to change this so that Tortoise (subversion that is) allows me to edit comments. Why would one desire to edit comments? Because there are many times I f'd up and forgot to add more comments after a commit after I realized I missed x,y,z that should have been in the comments after the fact. Happens to anyone. While it's a security risk to allow developers to do this, we back up our repository every 2 hours so if anyone goes through and deletes them, oh well, I am willing to take that risk as we have this backed up. That risk should not overshadow the ability to fix comments at will.

推荐答案

如果您的存储库在Windows计算机上,只需创建一个名为 revprop-change.bat 并添加行

if your repository is on a windows machine, simply create a file named pre-revprop-change.bat and add the line

exit 0

在其中.

这篇关于revprop-change挂钩失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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