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