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

Re: SVN Hook (pre-commit): How to send messages to the SVN-Client, when exit code is 0?

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 17 Sep 2009 11:26:26 -0400

You can't display anything on a successful execution in a hook to STDOUT or
STDERR. However, you can send out an email, an SMS, an IM, or, even send
out a tweet. Sending out a Tweet is probably the easiest way since the API
is so simple.

Another possibility (since you are doing testing) is to use a continuous
build server like Hudson that will do a build and run your tests without a
user waiting for their commit to succeed or fail. Hudson has plugins for
IMing users, sending out emails, and even tweeting.

On Thu, Sep 17, 2009 at 7:01 AM, Daniela Waranie <typo3-community_at_gmx.de>wrote:

> Hi all,
>
> i want to give the SVN-Client (the user) a hint, that his commited .php
> files has passed the PHP5 syntax check.
>
> If your user introduces other file types to the project (containing) php
> code, he should ask the svn-administrator to update the pre-commit
> script to check these files too.
>
> This should give the user the possibility to notice what PHP version is
> expected by the svn repository administrator. If for some reasons the
> user what to switch the project to PHP4 (or later to PHP6) or to mix the
> PHP versions he should able to recognize in his commit (even this commit
> is not about PHP at the moment). (Sure he will get an error message when
> he tries to commit "invalid" PHP code at a later time, but this is not
> what i am asking here).
>
> At least this is for information, to make it visable what tests are done
> while committing to this projects (it is different per each project).
>
> I know it is possible to display messages when the exit code of my
> script is >0. How can i show messages to the SVN-client (e.g.
> tortoiseSVN) if there was NO error (exit code 0)?
>
>
>
> Best regards
> Daniela Waranie
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395923
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_subversion.tigris.org].
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2396057
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-17 17:27:50 CEST

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.