[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: Meeran, Noorie <Noorie_Meeran_at_cable.comcast.com>
Date: 2006-01-26 21:46:51 CET

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

/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
Received on Thu Jan 26 21:51:15 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.