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

Message from hook script / suggestion for the book

From: Dirk Schenkewitz <schenkewitz_at_docomolab-euro.com>
Date: 2005-03-30 15:22:07 CEST

Hi all,

I made some experiments with a hook script and discovered that
no messages are forwarded to the client if the hook script returns
a 0 as its exit value.

Is it true that there is no way for a hook script/program to send
informations to the client *in case the commit should be accepted*?
(Other than creating an email, which would require that the hook
script somehow knows about the email address of committer.)

If that's true, I have "patch" for the book, page 73:
--- old
+++ new
   If the program returns a non-zero exit value, the commit ist stopped
- before the transaction is even *created. If* the hook program
   writes data to stderr, it will be marshalled back to the client.

   If the program returns a non-zero exit value, the commit ist stopped
+ before the transaction is even *created and if* the hook program
   writes data to stderr, it will be marshalled back to the client.

The same in the next paragraph. Still, this does not explicitely say
that it's not possible to forward a message to the client in the
"good"-case, but its a bit nearer to the truth ;-)

Best regards
   Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 30 15:28:44 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.