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

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

From: Daniela Waranie <typo3-community_at_gmx.de>
Date: Thu, 17 Sep 2009 13:01:08 +0200

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].
Received on 2009-09-17 13:02:24 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.