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

Re: FS: accessing the "head"

From: Jim Blandy <jimb_at_savonarola.red-bean.com>
Date: 2000-10-22 14:47:43 CEST

Greg Stein <gstein@lyra.org> writes:

> Digging in now... how do I call svn_fs_open_root(..., HEAD) ? I couldn't
> find a way to ask for the latest version.
>
> Also, is there any code or test proggie or whatever that will create and
> load up an FS with some test data? I'm >this< close to wanting to read data
> out of an FS. But how to create it and fill it? eek.
>
> Hmm... Looking at the client code, I see a lot of code that deals with XML
> files, but it doesn't appear to actually link against the FS. So... what
> *does* link to the FS?

I don't have any functions for accessing the version table yet. We
need functions for finding the head version number, and getting and
setting version properties.

Writing to the filesystem is what I'm working on at the moment. I
think it should be working by the end of this week.

(When I started working on writing, I realized that I'd created a
bunch of structure that would be a pain to keep up-to-date in the
presence of transactions, where node contents may change out from
under you. So I'm ripping it all out. One should ask why it was
there in the first place, but hey, the code's getting simpler...)

A program to load up an FS with test data wouldn't be hard to write.
Check out libsvn_fs/skel.h and libsvn_fs/structure; the filesystem
structure is all butt-simple.
Received on Sat Oct 21 14:36:12 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.