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

Re: svn_fs_open_berkeley

From: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2001-12-19 06:59:12 CET

cmpilato@collab.net writes:

> No. There are two ways to get an svn_fs_t * object.
>
> 1. Use svn_fs_new() (and initialize it with svn_fs_open_berkeley).
> In this case, you are operating not on a Subversion repository,
> but on only the FS subsystem of a Subversion repository.
>
> 2. Use svn_repos_open() followed by svn_repos_fs(). In this case,
> you are operating on a Subversion repository, specifically
> interested in the FS subsystem portion of it.
>
> The fs-tests prove that the FS library needs no Subversion repository
> in order to function (just run fs-tests and look at the test-repo-*
> subdirectories that get created -- they are *just* the BerkeleyDB
> environments!).
>
> The repos-test binary (and svn, svnadmin, svnlook, etc.) are,
> however, using the svn_repos.h interface (since they are users of
> Subversion repositories), and running all the other tests in our test
> suite will demonstrate that they too work just fine. Again, run
> repos-test and look at the test-repo-* directories *it* creates --
> those are full-fledged Subversion repositories.
>
> The idea here is that FS API is meants to be modular, and theoretically
> Subversion-independent. The REPOS API *is* Subversion.

Ahhh, OK, if you are operationg on Svn repository, you need
to use svn_repos functions. That's fair enough. Thanks for
explanation. I was a bit surprised because my script
suddenly stopped working.

-- 
Yoshiki Hayashi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 2006

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.