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

Re: [PATCH] pre-update and pre-getfile hook

From: Peter Lundblad <peter_at_famlundblad.se>
Date: 2006-03-01 10:25:38 CET

Mathias Weinert writes:
> Referring to http://svn.haxx.se/dev/archive-2006-02/0304.shtml Max Bowsher wrote:
>
> I agree with you that now as we have per path access control for
> svnserve these hooks aren't as important as they've been. But on
> the other side they could be used for other things like logging,
> preventing people from checking out too much (e. g. root) as
> recently discussed in another thread or blocking certain IP
> addresses.
>
> What exactly do you mean with "The efficiency implications are
> major"? Would the hook significantly slow down things?
>

Depends on how often it is invoked. If it would be invoked for each
path, that probably is a performance problem. Look in
subversion/libsvn_repos/hooks.txt. That's a design doc for the
current hooks with further ideas on "read sentinels" - basically a
hook that will be started once and notified for each path processed
with the ability to stop the operation. Might be useful if we want
read hooks-

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 1 10:26:54 2006

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