[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: <cmpilato_at_collab.net>
Date: 2003-05-03 17:17:52 CEST

Edmund Horner <ejrh@paradise.net.nz> writes:

> 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?

You just want the last revision and log message? I'd use 'svn ls -v',
and then 'svn pget -r REV --revprop svn:log' for each of the revisions
that 'svn ls -v' revealed that I need.

> 2. How can I get the most recent revision number out of the repository
> without having to parse large amounts of data?

Most recent revision ... of the whole repository?

$ svn st -u
[ignore some possible lines of local mods here]
Head revision: 5790

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