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

Subversion Hook succeeds inconsistently (very strange)

From: Bradley Molander <Bradley.Molander_at_nisc.coop>
Date: 2006-09-06 04:41:19 CEST

Apparently, with most commits through the dav connector, a newline is being appended. Subversion pre-commit hook nearly always fails because of this even when the only text in the file is:

------------
#!/bin/sh
exit 0
------------

We have been using subversion for 18 months with no problems. Once we upgraded to 1.3, the dav connector more often than not reports a hook error when there isn't one (using above script). Sometimes, it passes, but usually not (~ 10 failures to every success). If we use svnserve, the hook works properly (so do our normal hooks).

What could cause this? In the apache log I see:
[Tue Sep 05 21:33:44 2006] [error] [client *host*] Could not MERGE resource "/dav/test2/!svn/act/b616d8cd-bf1c-0410-9d09-cae5edde832e" into "/dav/test2". [409, #0]
[Tue Sep 05 21:33:44 2006] [error] [client *host*] An error occurred while committing the transaction. [409, #165001]
[Tue Sep 05 21:33:44 2006] [error] [client *host*] 'pre-commit' hook failed with error output:\n [409, #165001]

The '\n' seems to be tripping the connector into thinking the script failed. Not sure where it even came from. Is this a neon problem? Race?

System:
SUSE 10.1
Subversion 1.3.0 (also tried 1.3.2 from source)
apache2

Any ideas?
Brad
Received on Wed Sep 6 04:42:43 2006

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