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

Re: Getting HEAD revision number from a URL

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2004-10-24 19:08:12 CEST

On Oct 24, 2004, at 9:50 AM, Ben Collins-Sussman wrote:

> On Oct 23, 2004, at 7:57 PM, Scott Palmer wrote:
>>
>> Why is there no simple way to query the repository for the head
>> revision?
>
> Because it's not a common operation?

> Nevertheless, there *is* a network API call for this in svn_ra.h.
> Just run RA->get_latest_revnum(). It's just not been isolated as a
> single command.

It just seemed odd that svnversion would exist (isolated as a single
command) and yet not handle it.

> But here's a special present for you.

Oh Boy!

> It took me 1 minute to modify from tools/examples/svnput.c.
>
> [sussman@BenBook:~/projects/svn/tools/examples]$ cc headrev.c -o
> headrev -g -I/usr/local/include/subversion-1
> -I/usr/local/apache2/include -L/usr/local/apache2/lib -L/usr/local/lib
> -lsvn_client-1 -lsvn_ra-1 -lsvn_subr-1 -lapr-0 -laprutil-0

I just need to compile it for Windows and I'm all set. That shouldn't
be a problem.

Thanks,

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 24 19:08:39 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.