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

Re: post-commit/commit-email issue

From: <cmpilato_at_collab.net>
Date: 2003-05-14 22:00:14 CEST

Chien-Lung Wu <cwu@deltartp.com> writes:

> The post-commit hook is as following:
> /********************************************
> #!/bin/sh
>
> # POST-COMMIT HOOK
> #
> # Here is an example hook script, for a Unix /bin/sh interpreter:
>
> REPOS="$1"
> REV="$2"
> #echo "This is REPOS=$REPOS" >> y.txt
> #echo "REV=$REV" >> y.txt
> echo $REPOS >> y.txt
> echo $REV >> y.txt
> cp /svn/repos/R3/hooks/y.txt /svn/repos/R3/hooks/x.txt
> #commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
> perl commit-email.pl "$REPOS" "$REV" cwu@deltartp.com
> log-commit.py --repository "$REPOS" --revision "$REV"
> /*******************************************************************
>
> Anything wrong with post-commit?
> I also try to make sure the input (REPOS and REV) from subversion server;
> however, I find they are "empty".
> Can anyone show me any hint to overcome this problem? Appreciate your help.

I can't recall if hooks inherit the environment when they run, so try
passing the full path to 'perl' and 'log-commit.py' and such.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 14 22:04:57 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.