RE: Add text to commit log
From: Hansa <mythtv_at_logic-q.nl>
Date: Tue, 11 Mar 2008 19:26:04 +0100
Ok.. I've figured it out. I think :)
The final part of my last e-mail isn't entirely correct.
Properties (via svn propset) can be set on files, dirs, or revisions. Also
svn propset svn:log --revprop -r $REV $PROPVAL /path/to/repository
# cd /path/to/svn/repos/hooks
edit post-commit and make it look something like this:
REPOS="$1"
# Modify REPOS to svn/html URL
svn propset svn:log --revprop -r $REV \"new log\" $REPOS
Save.
# cp pre-revprop-change.tmpl pre-revprop-change
edit pre-revprop-change:
REPOS="$1"
if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
echo "Changing revision properties other than svn:log is prohibited" >&2
Save and you're done (I think) :)
Try it and let me know if this works...
Hansa
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.