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

Re: Pre-commit hook to verify Perl syntax + build test

From: allan <allan_at_muly.dk>
Date: 2006-09-18 17:10:55 CEST

Peter Werner wrote:
>> after checking out the code, you either allow the commit or disallow
>> it.
>
> No, not in the post-commit. You can do it in the pre-commit.

just to clarify. i was speaking in a pre-commit context.

>
> BTW, is there anybody here who made a pre-commit check that tries to
> run a build (on trunk if it was changed) and reject the commit if build
> breaks? (I'm just about to write one.)

we tried at one moment, but decided it wan not practical, so decided on
a post-commit check instead. when people get a email notification with
the exact error message they are generally quick to fix it themselves.

you could set up a build server that would build on every relevant
commit/changeset and spit out some status. i guess mileage will wary

./a

> The code "checkout" (svnlook cat) part is the similar to perl syntax
> checking.
>
> WP
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 18 17:13:11 2006

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.