[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

From: allan juul <allan_at_muly.dk>
Date: 2006-09-17 18:17:12 CEST

Marcos Chaves wrote:
> Hi Allan.
>
>>> I'm trying to create a pre-commit hook that only allows the commit of
>
>> we do it in a post-commit.
>
> But what do you do if the check that you perform fails? A transaction
> that is invalid by your criteria was just commited.
>
> I think that you decided for the post-commit because then you can
> easily extract the new directory structure just commited to perform
> a check that can handle the file dependencies. I'll try to do
> something similar on the pre-commit phase, because I want to block
> the commit if the transaction is invalid based on my criteria.
>
> Thanks all for the ideas.
>
> -Marcos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

you *can* export/checkout/extract the code you are trying to comit and
then do whatever checking you want, right?

after checking out the code, you either allow the commit or disallow it.

the only difference in your and our case is that you check out in the
transaction phase rather than the revision phase.

./allan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 17 18:18:09 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.