You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by William Lovins <wl...@interland.com> on 2004/12/16 21:34:19 UTC

svnlook youngest equivalent on webdav repositories

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.

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnlook youngest equivalent on webdav repositories

Posted by Ben Collins-Sussman <su...@collab.net>.
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