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

Re: svnlook youngest equivalent on webdav repositories

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-12-16 23:18:08 CET

On Dec 16, 2004, at 3:34 PM, William Lovins wrote:

> I am currently using subversion and ant for building an application.
> I am looking for a way to get the revision number from the repository
> in
> the same method that "svn youngest /path/to/repo" does, but from the
> web
> dav repository and not from a local repo (as it is located on another
> server). I *could* run "svn update" and grab the output, but sometimes
> that isn't desirable in this circumstance. Is there any equivalent
> command to get that information? I've looked through the mailing list
> and could not find anything that relates to remote repo info.
>

There's a C API to get the youngest revision:
RA->get_youngest_revision.
So I recommend either:

   - modify the 'minimal_client.c' program to open an RA session to a
URL, then call RA->get_youngest_rev. This is a teeny change.

   - if you'll always have a working copy available, you could run 'svn
status -u' and parse the last line. No update side-effects.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 16 23:21:48 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.