[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: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2006-03-01 13:05:00 CET

Peter Lundblad wrote:

> Mathias Weinert writes:
> > Peter Lundblad wrote:
> >
> > > 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-
> >
> > In its current version the pre-update hook is invoked once for
> > a checkout/update and twice for a getfile (e. g. 'svn cat').
> >
> >
>
> Which means twice per file in a merge:-( I'm not saying that the
> performance cost might be worth paying, just pointing out that it
> might have broader performance implications than one might think.

It's actually once per not-new file in a merge (but twice for a
single file if you say 'svn cat'). But this is for the per-getfile
hook. The pre-update hook is only called once - and this might be
the one which makes more sense than the other one.

Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 1 13:05:50 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.