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

RE: post-revprop-change Hook Script

From: Barnett, Chris <Chris.Barnett_at_Yum.com>
Date: 2006-01-26 22:46:32 CET

Hi, sorry if these are really obvious or have been previously mentioned,
but just a couple of things to check:

1) The hook script will be executed by the user who owns your
apache/svnserve process - make sure this user can execute your script.

2) Make sure '#! /usr/bin/perl' is the first line of your script, so
that the shell can execute the perl interpreter.



-----Original Message-----
From: Meeran, Noorie [mailto:Noorie_Meeran@cable.comcast.com]
Sent: Friday, 27 January 2006 7:47 AM
To: Ryan Schmidt
Cc: users@subversion.tigris.org
Subject: RE: post-revprop-change Hook Script

I have written a perl script inside post-revprop-change hook file. When
I run this perl (hook) script alone, I am able to run it without errors.
But I am not able to run this script after a commit. My filename is
still "post-revprop-change" without the .py extension.

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2006Q1@ryandesign.com]
Sent: Thu 1/26/2006 2:39 PM
To: Meeran, Noorie
Cc: users@subversion.tigris.org
Subject: Re: post-revprop-change Hook Script
On Jan 26, 2006, at 20:17, Meeran, Noorie wrote:

> I have the repository on a unix machine and I am trying to run the
> post-revprop-change hook script after a client does a commit. I have
> change the access privelege and made it executable. I have renamed the

> file to post-revprop-change and all I have in the file is a echo
> statement like this:
> echo "Hello" > test
> I am hoping if this script runs, it would create a file called test
> and print Hello there.

you must specify the absolute path to the file, for example:

echo hello > /tmp/test

For most commands you must also supply the absolute path to their

/usr/local/bin/svnlook [...]

> I even tried
> echo "Hello"
> but I don't get any thing printed to the screen. Am I doing somehting
> wrong here? Do I need to make pre-revprop-change also executable.

the output of a post-commit or post-revprop-change hook is never shown
anywhere. if you want to output something and see it somewhere, you'll
have to write it into a file, as above.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

This communication is confidential and may be legally privileged. If you are not the intended recipient, (i) please do not read or disclose to others, (ii) please notify the sender by reply mail, and (iii) please delete this communication from your system. Failure to follow this process may be unlawful. Thank you for your cooperation.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 26 22:48:07 2006

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.