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

Re: Non-file based checkout?

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Thu, 24 Mar 2011 08:09:57 -0400

On Wed, Mar 23, 2011 at 8:12 PM, Clifford Yapp <cliffyapp_at_gmail.com> wrote:
> Hi!  I'm looking at using the subversion libraries to handle data, and
> I would like to integrate them into an application for
> revisioning/managing computer aided design geometry information.
>
> Looking over the client API, it seems to assume that a checkout will
> result in a file in a filesystem path (e.g. a working checkout).  Is
> there a way to request in C the straight-up data from the svn
> repository without bothering the disk, e.g. checkout svn checkout
> file://repository/datafile1 and have it returned as a char * array or
> some other binary form in C?  Based on my current understanding I
> would have to checkout the file in question to a working directory and
> read it in from there to get it in memory - is that true or is there
> another, lower level API that doesn't require that step?  I have a
> situation where I have potentially thousands of files, some large and
> some small, that all need to be individually tracked and then combined
> into single larger files. It can really kill performance to have to
> involve the filesystem and write out lots of individual tiny files -
> ideally I'd like to send information to/from the repository using what
> would in effect be an in-geometry-storage-file checkout.
>
> Any help appreciated - thanks!

wget or curl can pull the data from an upstream HTTP or HTTPS based
repository and pipe it to stdout, if that's enough information. What
you're describing really sounds like a database operation, though, not
a source control operation.
Received on 2011-03-24 13:10:38 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.