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

Long error messages from hook script causing overflow bug?

From: Fletcher Dunn <fletch_at_terminalreality.com>
Date: 2005-12-01 18:53:13 CET

Hello all -

 

We have a simple pre commit hook script that checks for two things:

 

* disallows mixed case (We're using svn on both Linux and Windows, and this
causes us problems)

* forces the needs-lock property for certain file types like bitmaps, etc.

 

We had this working great where it would bail on the first error. Then, I
made a change to the script so it would write out ALL the errors to strerr
before failing the hook. Each file that failed was on a separate line. I
did a commit on a large group of files with several errors, and it hung.
(I'm using Tortoise SVN, BTW)

 

So I tried adding a few files at a time that had errors, and it seemed to
properly report the error condition. Then I removed my hook script, and
everything went through no problems, so I don't think it was just taking a
long time and I wasn't waiting long enough for it to finish. In other
words, the thing that seemed to make it hang was the fact that a large
number of errors were being reported.

 

Has anybody else seen any problems with long error messages returned from
hook scripts? This might be a Tortoise-specific problem.

 

- Fletch

 
Received on Thu Dec 1 19:18:03 2005

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