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

Re: Anyone want a server load generator called svn-annotate.py?

From: <kfogel_at_collab.net>
Date: 2003-07-28 17:08:05 CEST

Brandon Ehle <azverkan@yahoo.com> writes:
> This is more or less the side effect of my investigations into the
> current state of the SWIG Python bindings.
> It implements svn annotate functionlity using svn log, svn cat, and
> svn diff in a brute force approach. It's probably great for
> generating server load and checking for corrupted repositories too :).

Yes, I want it :-).

If you're using 'svn cat', then why run 'svn diff' at all?

Since 'svn diff' just fetches texts from the server and runs diff
locally, it might be better simply to fetch the fulltexts using 'svn
cat' and do all your diffing locally using plain diff. After all,

   $ svn diff -r X:Y foo.c
   $ svn diff -r Y:Z foo.c

...fetches revision Y twice, whereas if you just gather all the
necessary revisions once and then use local diffing to get the
annotation information, you avoid the extra load.

(I'm not exactly sure how your script works, so my point might be
worthless, just tell me if so.)

I'd be even more excited about a version that didn't depend on the
bindings. Are you taking advantage of Sander Striker's internal diff
library? It didn't look like it to me, but I might have misread the
code. If you're not, then does using the bindings help much at all?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 28 18:03:47 2003

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.