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

Re: Get a filelist with some properties for files/directories

From: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2005-10-12 07:32:45 CEST

On Tuesday 04 October 2005 21:58, Peter N. Lundblad wrote:
> On Tue, 4 Oct 2005, Ph. Marek wrote:
> > I'd need to get a recursive list of files stored in an subversion
> > repository, with *some* properties, ie MD5-sum, svn:special, and
> > suchlike.
> >
> > I know that I can just use an update editor and get the needed
> > information, but AFAIK then I'll get the whole file-data as well - which
> > would be discarded, and make this process unnecessary slow.
> >
> > I believe having read about a status editor, which would probably do what
> > I need. What's the current status for that?
>
> Have you looked at svn_ra_do_status? It won't give you text deltas, but
> all properties. If you want the content for svn:special files, you could
> just request those files with svn_ra_get_file. That's a round-trip per
> file, so if you have many special files, then it'll not be the fastest in
> the world...
I'm now trying to use svn_ra_do_status(), and I'm wondering about a few things
here.

- Why is the apply_textdelta-callback called, but nothing done? I'm giving
/dev/null as source and destination, and strace shows no writes or reads.

- I don't get an "entry:md5" property or some such, but believe that the
parameter for the close_file callback should be what I want.

- Is there a way to get the file *size*?

And BTW, is there an easy way to get a textdelta-stream into a buffer? The
reverse direction can be done with svn_stream_from_stringbuf(), but I didn't
find a svn_stream_to_stringbuf or something like that.

Thanks in advance!

Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 12 07:33:38 2005

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.