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

Re: Pre-commit and post-chekout hooks on client side

From: <kfogel_at_collab.net>
Date: 2004-09-08 15:44:35 CEST

Waldemar Augustyn <waldemar@nxp.com> writes:
> Now, with SVN, that is not possible. The hooks, that you are
> referring to, do not allow updates to pending transactions, which I
> understand prohibits any file modifications. I am no expert, but I
> thought I saw a note to that effect. I think that would break the
> atomic nature of transactions otherwise.

You are correct that this is disallowed. Not because it breaks
atomicity, but because it breaks the correspondence between what the
client thinks it has committed and what the repository thinks was
committed.

However, why don't you use a 'pre-commit' hook to check if the files
are correct, and simply reject the commit if they're not? Then the
user on the client side will notice, fix them, and try again.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 8 17:26:45 2004

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.