Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: post-commit hook does not show message at client

subversion
Discussion topic

Back to topic list

Re: post-commit hook does not show message at client

Author "Timo Einsiedler-Burger" <solomac at gmx dot de>
Full name "Timo Einsiedler-Burger" <solomac at gmx dot de>
Date 2009-04-03 01:25:02 PDT
Message Hello,

thanks for the quick reply. I must have got the messaging part wrong, then. Well, anyway good to know how it should work. I guess I will make it fail in purpose just to notify the client.

All of the other mentioned messaging systems could be implemented as a add-on, but I really need direct feedback and cannot trust that developers have IM, SMS, etc.

Maybe this could be an issue for a CR?

Take care, Timo.

-------- Original-Nachricht --------
> Datum: Thu, 2 Apr 2009 14:21:32 -0400
> Von: David Weintraub <qazwart at gmail dot com>
> An: Timo Einsiedler-Burger <solomac at gmx dot de>
> CC: users at subversion dot tigris dot org
> Betreff: Re: post-commit hook does not show message at client

> Hooks don't display STDOUT. They display STDERR, but only if the hook
> itself fails.
>
> Remember that the hook executes on the server side and not the client
> side, so there is no way to show the output to the client unless the
> hook script is able to directly talk to the client side.
>
> Almost all of the server-side hook executing CM systems I know don't
> send anything back to the client until after the hook script has
> executed, and then only upon failure. So, Subversion isn't unusual in
> this effort.
>
> Since this is a post-commit hook, you could purposely fail the hook
> (the commit has already taken place anyway), and that will get the
> message back to the client.
>
> Another is to use IM, SMS, or Twitter to notify the client which is
> becoming more and more popular with many software companies.
>
> On Thu, Apr 2, 2009 at 1:25 PM, Timo Einsiedler-Burger <solomac at gmx dot de>
> wrote:
> > Hello,
> >
> > please can someone help me out on this one! I have spent hours of
> searching but did not turn up with anything useful, so far.
> >
> > My hook code:
> > #!/bin/sh
> >
> > REPOS="$1"
> > REV="$2"
> >
> > /usr/bin/svnlook changed -r $REV $REPOS 2>&1 | tee -a /tmp/svntest.log
> > echo "POST_COMMIT_HOOK - path: $REPOS, revision: $REV" 2>&1 | tee -a
> /tmp/svntest.log
> >
> > Everything works fine ... hook gets executed and log file written. When
> i call it directly on the server i do get the log output on my prompt.
> However i do not get the log output displayed on my client from which i execute
> the commit. This is a problem, because i want to notify the user! I know i
> could use email for that as well, but i want direct notification upon
> committing.
> >
> > My clients use commandline (from linux box) and connect via svn+ssh
> (could this be a problem???).
> > As far as i understand the output should get displayed at the client.
> >
> > Thanks and take care!!!
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen: http://www.gmx.net/d​e/go/multimessenger0​1
> >
> > --------------------​--------------------​--------------
> >
> http://subversion.ti​gris.org/ds/viewMess​age.do?dsForumId=106​5&dsMessageId=15​21513
> >
> > To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@s​ubversion.tigris.org​].
> >
>
>
>
> --
> David Weintraub
> qazwart at gmail dot com
>
> All attachments have been scanned for viruses and have been found to
> be virus free. So, just go ahead and open them. Go ahead... Just
> click on it... Trust me.

--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?a​c=OM.AD.PD003K11308T​4569a

« Previous message in topic | 4 of 6 | Next message in topic »

Messages

Show all messages in topic

post-commit hook does not show message at client "Timo Einsiedler-Burger" <solomac at gmx dot de> "Timo Einsiedler-Burger" <solomac at gmx dot de> 2009-04-02 10:26:00 PDT
     Re: post-commit hook does not show message at client David Weintraub <qazwart at gmail dot com> David Weintraub <qazwart at gmail dot com> 2009-04-02 11:21:35 PDT
         Re[2]: post-commit hook does not show message at client Andrey Repin <anrdaemon at freemail dot ru> Andrey Repin <anrdaemon at freemail dot ru> 2009-04-02 11:35:15 PDT
         Re: post-commit hook does not show message at client "Timo Einsiedler-Burger" <solomac at gmx dot de> "Timo Einsiedler-Burger" <solomac at gmx dot de> 2009-04-03 01:25:02 PDT
             Re: post-commit hook does not show message at client David Weintraub <qazwart at gmail dot com> David Weintraub <qazwart at gmail dot com> 2009-04-03 07:34:03 PDT
     Re: post-commit hook does not show message at client "Timo Einsiedler Burger" <solomac at gmx dot de> "Timo Einsiedler Burger" <solomac at gmx dot de> 2009-04-03 09:48:31 PDT
Messages per page: