[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: executing hooks fails (SVN 1.4.6 on linux)

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Fri, 6 Feb 2009 13:34:08 -0800

On Fri, Feb 6, 2009 at 1:07 PM, Peter Gliwa <peter_at_gliwa.com> wrote:

> Dear SVN experts,
> I am having problems getting hooks to run properly with SVN 1.4.6 under
> Apache/2.2.8 (Ubuntu 8.04).
> E.g. the pre-revprop-change hook which is required to allow changing a log
> message:
> The script is the original version as delivered with SVN:
> #!/bin/sh
> REPOS="$1"
> REV="$2"
> USER="$3"
> 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
> The rights are set correctly and the hook is located at the right place.
> The
> hook runs perfectly when executed in a shell. I even followed the hints of
> the FAQ to make sure, I am not using any environment variables: run as
> www-data user in an "empty" shell:
> su www-data
> ls -l /svn/repos/hooks/pre-revprop-change
> -rwxrwsrwx 1 www-data www-data 2763 2009-02-06 21:56
> /svn/repos/hooks/pre-revprop-change
> $ env - /svn/repos/hooks/pre-revprop-change foo bar foo svn:log M
> $ env - /svn/repos/hooks/pre-revprop-change foo bar foo svn:log invalid
> Changing revision properties other than svn:log is prohibited
> The first call imitates a correct change-log modification (leading to no
> output: correct), the second an invalid (resulting in the desired
> error-message: correct).
> I have tried a lot but have no idea what I am doing wrong.
> Can anyone help? Thanks in advance!

When you say it fails to run, do you mean that it does not run at all?

Can you tell us the command you are using to set a revision property
(unversioned property)? Note that you have to change a revision property
using the command similar to the one listed in this faq entry:

The revision properties are svn:log, snv:author, svn:date and



To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-06 22:34:55 CET

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.