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

RE: version of SVN client, which created an existing working copy

From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Thu, 26 Mar 2009 17:34:51 +0100

> -----Original Message-----
> From: Andy Levy [mailto:andy.levy_at_gmail.com]
> Sent: donderdag 26 maart 2009 15:54
> To: Marko Klopcic
> Cc: users_at_subversion.tigris.org
> Subject: Re: version of SVN client, which created an existing working copy
>
> On Thu, Mar 26, 2009 at 07:16, Marko Klopcic <marko.klopcic_at_isystem.si>
wrote:
> > Hi,
> >
> > How can I get version of the client, which created existing
> > working copy (which API function / data structure)?
> >
> > The idea is to use the same svn client version in our
> > application automatically, therefore NOT to force users to
> > upgrade all other svn clients, which may not even be available.
> >
> > The problem is critical in the period after new release, because
> > not all clients are upgraded immediately.
>
> In each.svn directory is a file named "format". It contains an integer
> which indicates which WC format the WC is using. I don't have a
> mapping of formats to SVN versions, but each time the WC format
> changes, that format number changes.

And in Subversion 1.6.0 this file is removed as it wasn't used by Subversion
itself for the last few versions. (And Subversion 1.7 might remove most .svn
directories from your working copy).

So I don't think that you should rely on these implementation details...

        Bert

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1432078

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-26 17:36:02 CET

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.