You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dirk Schenkewitz <sc...@docomolab-euro.com> on 2005/03/30 13:22:07 UTC

Message from hook script / suggestion for the book

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