Re: Can the commit message be changed by a hook?
From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-02 21:20:56 CET
On Nov 2, 2006, at 07:53, Erik Forsberg wrote:
> Can I change the commit message written into the repository using a
You should be able to do that in the post-commit hook, yes. Your post-
#!/bin/sh
REPO="$1"
SVN=/usr/local/bin/svn
$SVN propset --revprop -r $REV svn:log \
Note that you also need to install a pre-revprop-change hook to allow
#!/bin/sh
REPO="$1"
if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
echo "Changing revision properties other than svn:log is prohibited" >&2
---------------------------------------------------------------------
|
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.