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

Pre commit script exit code validation stopped working after subversion update

From: <karl.mauser_at_gmx.de>
Date: Tue, 11 Feb 2014 14:32:41 +0100

Hello,

we just tried to update subversion from 1.7.10 to 1.8.5, but after the upgrade a non zero exit code from our pre commit script is no longer recognized.

Minimal example to recreate the error:
System: Windows 7, Subversion command line client 1.8.5
1. Create a svn repository in a folder on your filesystem
2. Create a hook script in the hook folder of the repository (called "pre-commit.bat"), which always gives a non zero return value:
------
@echo off
set ERRLEV=1
echo pre-commit.bat > con
echo Er: %ERRLEV% > con
pause < con > con
exit /b %ERRLEV%
------
3. Create a working copy from that repository (using the file:/// syntax)
4. Add a new file to svn and commit the changes
5. The file gets transferred to the repository, ignoring the non zero return value from the pre commit scipt

If you do the same thing with subversion 1.7.10 the commit is stopped and an error messages is displayed.

Did I miss something or is this a bug?

Regards,
Karl
Received on 2014-02-11 15:06:59 CET

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.