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