[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-11-12 18:46:58 CET

kbrannen@gte.net writes:

> > Um, generally, yeah.... but why do you want to convert an apr_file_t
> > into an svn_stringbuf_t?
>
> 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. 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).

Oh jeez, you're right!

svn_client_cat() isn't allowed to assume that the svn_stream_t is
stdout. Instead, the client application must create the stdout stream
object, and pass it *into* svn_client_cat(). That's pretty simple.
Just add a stream argument to svn_client_cat().

---------------------------------------------------------------------
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:48:58 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.