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

Re: Using svn client to get information about repository

From: David Golpira <golpira_at_alternatecomputing.com>
Date: 2003-05-04 14:02:04 CEST

I forgot to give the URL:

http://www.alternatecomputing.com/jsvn/index.php3

On Sun, 2003-05-04 at 07:39, David Golpira wrote:
> Edmund,
>
> I do a very similar thing in JSVN. The code is entirely in Java, but
> you can look at it for ideas (or just use the classes directly in your
> own project if you're using Java too.)
>
> If after looking at the JSVN code, you have any questions about it,
> please let me know.
>
> -Dave
>
> On Sat, 2003-05-03 at 10:16, Edmund Horner wrote:
> > Hi all,
> >
> > I have been working on a rudimentary ViewCVS-like script, which makes
> > use of the svn command-line client to query the repository.
> >
> > Unfortunately, Windows process creation can be very expensive, so one of
> > my goals is for the number of calls to svn.exe to be constant-bounded
> > for any particular request to the script.
> >
> > For example, when listing a directory, I can't afford to call svn for
> > every file in the directory to get the last revision and log message.
> > Instead, I run "svn log -v" on that directory and parse the
> > (increasingly large) results.
> >
> > 1. Are there any better ways of getting the last revision and log
> > message for a directory full of files?
> >
> > One improvement I am making is caching the output of the script for a
> > given request. I only want the script to requery the repository if the
> > revision number has increased since last time.
> >
> > 2. How can I get the most recent revision number out of the repository
> > without having to parse large amounts of data?
> >
> > I'm aware that two possible answers might be "Use the Subversion
> > libraries to work with the repository without svn.exe" and "Just just
> > ViewCVS"; but I have decided against those solutions for the time being.
> >
> > Thanks for all forthcoming ideas,
> > Edmund Horner
> > ejrh@paradise.net.nz
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
> >
> >

-- 
David Golpira <golpira@alternatecomputing.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 4 14:02:55 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.