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

Re: difference between start-commit and pre-commit hooks

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-06-14 20:33:30 CEST

On Jun 14, 2005, at 12:57 PM, Glenn R Heard Jr wrote:

> Is there a big difference in checking the user credentials in the
> start-commit versus the pre-commit hooks? I noticed in the hook
> templates
> that a form of auth check is done in both hooks. Currently I do
> mine in the
> pre-commit hook.

The only difference is when the user is booted out.

If the user is rejected by the start-commit hook, then nothing
happens in the repository at all.

If the user is booted by the pre-commit hook, then the user has
already built a transaction tree in the repository, and it's only one
step away from becoming a revision. If pre-commit fails, then the
whole repository transaction is aborted.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 14 20:36:34 2005

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