需要 subversion 的 post-revprop-change 挂钩帮助
我之前在 subversion 中创建了提交后和提交前挂钩,但我似乎无法成功触发 post-revprop-change 挂钩。
以下是我 post-revprop-change 挂钩的方式(并且可由 svn 用户执行):
#!/bin/bash
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"
TRIGGER_DB='/path/to/repo/hooks/trigger_record.txt'
/bin/echo "post-revprop-change/$REV/`/bin/date`" >> $TRIGGER_DB
然后从“repo”的本地工作副本,我添加了一个 svn 属性,如下所示:
~icasimpan$ svn propset test "this is only a test" .
~icasimpan$ svn ci -m"added test property"
鉴于我有一个可执行的 post-revprop-change 挂钩在回购服务器中,我希望在 /path/to/repo/hooks/trigger_record.txt 中获得记录...但我没有。
有人可以帮我吗?
提前致谢,
伊斯梅尔·卡西潘:)
I have created post-commit and pre-commit hooks in subversion before but I cannot seem to successfully trigger a post-revprop-change hook.
Here's how I post-revprop-change hook (and that's executable by the svn user):
#!/bin/bash
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"
TRIGGER_DB='/path/to/repo/hooks/trigger_record.txt'
/bin/echo "post-revprop-change/$REV/`/bin/date`" >> $TRIGGER_DB
Then from a local working copy of "repo", I added an svn property as follows:
~icasimpan$ svn propset test "this is only a test" .
~icasimpan$ svn ci -m"added test property"
Given that I have an executable post-revprop-change hook in the repo server, I was expecting to get a record in /path/to/repo/hooks/trigger_record.txt...but I didn't.
Can anyone help me out please?
Thanks in advance,
Ismael Casimpan :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这回答了我的问题(参见 Rup 的原文):
This answers my question(see the original from Rup):