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

Re: Detect incompatible (future) workingcopy format.

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 14 May 2011 04:25:08 +0300

Markus Schaber wrote on Fri, May 13, 2011 at 11:20:11 +0200:
> Hi,
>
> What is the safest future-compatible way to check for an incompatible /
> unknown working copy format which was written by a future subversion
> version? (e. G. WC-NG by SVN 1.7?)
>
> My idea was to run status with depth=empty on the workingcopy root, and
> check for SVN_ERR_WC_UNSUPPORTED_FORMAT error code.
>

What about SVN_ERR_WC_UPGRADE_REQUIRED?

> Is there a function specifically designed for this purpose?
>

If there isn't, it seems like a good idea to have one, in order for the
library to clearly communicate "I cannot perform <a contract-specified
set of basic operations> on this working copy unless you upgrade it".

> Regards,
> Markus
>
Received on 2011-05-14 03:25:42 CEST

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.