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

Re: AW: echo in post-commit hook

From: Greg Thomas <thomasgd_at_omc.bt.co.uk>
Date: 2006-07-12 10:31:17 CEST

On Wed, 12 Jul 2006 10:17:13 +0200, "Annick Collet"
<Annick.Collet@eumetsat.int> wrote:

>> -----Ursprüngliche Nachricht-----
>> Von: Annick Collet [mailto:Annick.Collet@eumetsat.int]
>> Gesendet: Mittwoch, 12. Juli 2006 09:58
>> An: users@subversion.tigris.org
>> Betreff: echo in post-commit hook
>>
>> I would like a msg to be sent to users under certain condition.
>> In post-commit hook:
...
>> echo 1>&2 'message'
>> Unfortunately the msg is not displayed . Any idea why ?
>
>That's pretty dead simple: Because by design, post commit hooks can't output
>anything to the user.
...
>this is strange because in the pre-commit I manage to check the pattern of some /tags folder
> and if pattern is wring ( with egrep) then I send an error to the users on the screen using echo 1>&2 !
>
>so what is different

What is different is that pre-commit hooks are designed to output
error messages to the user. post-commit hooks (which can finish long
after the control has been returned to the user by the client) are not
designed to output error messages to the user.

Greg

-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 12 10:32:37 2006

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.