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

Re: Find out the version of the repository server

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-04-27 21:14:14 CEST

Ben Reser <ben@reser.org> writes:

> On Wed, Apr 27, 2005 at 06:12:37PM +0200, SteveKing wrote:
> > First a little background why I need to find out the version of the
> > repository server. Maybe you guys know another way to do what I want
> > without knowing the version?
> >
> > Subversion 1.2 introduces svn_client_log2() which takes a 'limit'
> > parameter. That's great. But, if you call that function with a < 1.2
> > server, the server returns *all* revisions and the client just drops the
> > ones not asked for. That can be *very* slow for many revisions.
> > So, I'd like to somehow check if the 'limit' option works as it does
> > with 1.2 servers and if not, just use svn_client_log2() without the
> > limit param. To limit the revisions fetched, I could then adjust the
> > revision range accordingly.
> >
> > Sure, I could always adjust the revision range to avoid the problems
> > with < 1.2 servers, but then I might not get any log messages back if in
> > the range I specify no changes to that path/URL happened - that's why
> > I'd like to use the 'limit' param if possible.
>
> I'm pretty sure someone has pointed this out to you before but why don't
> you just use svn_ra_get_latest_revnum?

Er. He doesn't want to know what the HEAD revision in a repository
is. He wants to know if the server is running Subversion 1.2 codebase
or better.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 27 21:43:38 2005

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.