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

Re: pre-commit hooks does not show any output

From: Claudio Ochoa <claudio_at_fi.upm.es>
Date: 2005-10-27 15:13:23 CEST

Mathias Weinert wrote:
> Claudio Ochoa <claudio@fi.upm.es> wrote:
> Hmmmm.
> Perhaps you haven't installed svnlook in /usr/local/bin as
> the example hook script assumes (but then you should also
> get problems with running the perl script manually).

# which svnlook
/usr/local/bin/svnlook

However, initially I got this error when first running the script

# ./commit-access-control.pl /home/clip/SvnReps/Sandbox 11-1
./commit-access-control.cfg
Possible unintended interpolation of @SVN_BINDIR in string at
./commit-access-control.pl line 46.
Global symbol "@SVN_BINDIR" requires explicit package name at
./commit-access-control.pl line 46.
Execution of ./commit-access-control.pl aborted due to compilation errors.

So I changed @SVN_BINDIR@ in line 46 to

my $svnlook = "/usr/local/bin/svnlook";

> You could also try to run the hook script manually and look what
> it will tell you.

Now I don't get this error

# ./commit-access-control.pl /home/clip/SvnReps/Sandbox 11-1
./commit-access-control.cfg
Running /usr/local/bin/svnlook author /home/clip/SvnReps/Sandbox -t 11-1
./commit-access-control.pl: `/usr/local/bin/svnlook author
/home/clip/SvnReps/Sandbox -t 11-1' failed with this output:
svnlook: No such transaction

which is ok because 11-1 is not a real transaction.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 27 15:22:49 2005

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.