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

Re: Subversion vs. Perforce

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-09-10 23:25:48 CEST

Jens-Uwe Mager <jum@anubis.han.de> writes:

>
> http://codespeak.net/svn/vpath/trunk/dist/vpath/subversion.py
>
> This is in line 331 you see that real code to open a file stream to
> rerieve the contents of a versioned resource is commented out and hacked
> around with opening a pipe to svn cat. I would be really interesting in
> implementing that without the pipe by using the avn api directly. Do you
> have any clues how to make that work?

Hmmm. When I load the 'core' svn functions into python, I can see
that svn_stream_create() definitely exists, as well as all the other
svn_stream() functions. I imagine all you need to do is supply a
write function, and attach it to the stream via
svn_stream_set_write(). Then svn_client_cat() will push data at your
stream. Your write function can be very simple -- it can buffer the
whole file in memory if it wants to.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 10 23:26:51 2003

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.