[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: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-26 20:39:20 CET

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 20:47:16 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.