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