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

Re: svn cat (was: Re: svn up -p)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-11-12 18:28:14 CET

kbrannen@gte.net wrote:

> Because I was thinking that I needed to stick the file into a buffer
> to be passed back to whoever called svn_client_cat and *that* function
> would print to STDOUT.

Eeek!

> I was going that direction because it occurred to me that STDOUT may
> be relative. For the cmdline tool, it truely is the stream STDOUT,
> but for a GUI tool, it might be some browser window (or some specified
> filename more likely). The part that bothers me about this is that
> while it works for the vast majority of the cases, if this was done to
> a *big* file, the results would not be pretty. :-) I think the
> solution would be to have the calling function pass in a stream for
> the svn_client_cat to write to, hence removing the "exhaust memory"
> problem.

Yes, do use a stream. We even have generic streams in Subversion, for
exactly that purpose; see subversion/include/svn_io.h.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 12 18:29:28 2002

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.