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

Re: SVN hook for coding standard validation

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 29 May 2008 06:48:30 -0400

On Thu, May 29, 2008 at 12:02 AM, sangeeth jagadish
<sanioautoz_at_yahoo.co.in> wrote:
> Thanks in advance
>
> Iam implementing svn hooks to enforce coding standards on the code that gets
> checked manipulating the pre-commit hook.
>
> The validation of standards is for .xml,.htm,.java,.mxml ,.sql etc...
>
> I am using apache.digestor to fire the rools based on cetain xml
> configuration.
>
> Now the problem is in the tortoise commit dialog box , the action column
> shows a error when i get a warning after i validate a file for coding
> standard.
>
> How do i configure the tortoise/svn to show warning in the action column
> when i get a warning after validation and error when i get a error after
> validation.??

Subversion hooks can either return nothing, indicating success, or
return "something", indicating that the commit is rejected. You cannot
return a "warning" message while allowing the commit to execute.

This is a Subversion server/hook script issue, not a Tortoise issue,
and is best addressed on the Subversion Users mailing list.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-05-29 12:48:43 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.