开发者

Need help with subversion's post-revprop-change hook

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 :)


This answers my question(see the original from Rup):

That's not a revprop edit. Try svn propedit --revprop -r 1 svn:log. Revprops are the things you see in svn log - the commit date, the log message, etc. See Unversioned properties in the manual – Rup yesterday

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜