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