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

Hooks and Perl on Windows

From: Jason Butlin <roguejay_at_hotmail.com>
Date: 2004-11-22 17:21:00 CET

I'm running SVNServe.exe on a Windows 2000 Server.

I've set up a batch file for the pre-commit hook, which in turns calls a
perl script to check security rights. This all works fine and performs the
necessary checks. However, I am not getting the correct error code back to
the hook batch file.

If I run the hook batch file from the command line (with the necessary
tweaks to get it working), when the Perl script returns the DOS ERRORLEVEL
variable is correctly set to 1 or 0, depending upon the exit call of the
Perl script. However, when the batch file is run from SVN, the errorlevel
code is always 0.

Anyone got any ideas as to why this is?

Thanks
Jay

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 22 19:30:42 2004

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.