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

Using svn client to get information about repository

From: Edmund Horner <ejrh_at_paradise.net.nz>
Date: 2003-05-03 16:16:47 CEST

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

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 3 16:25:37 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.