Daniela Waranie 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)?
You are going somewhat beyond what 'version control' systems are typically
expected to do. Perhaps you should look at Hudson or a similar continuous
integration tool. These can be set up to trigger jobs of arbitrary complexity
when new commits are made and can email results or hold them for review.
--
Les Mikesell
lesmikesell_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395992
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-17 14:49:28 CEST