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

Re: checkout to stdout (cvs -p)?

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-05-18 14:02:14 CEST

Saku Ytti wrote:

>>> I looked into SVN::Client, however it doesn't allow checking out
>>> to an array, only to a filesystem. It also does not allow catting
>>> to an array, only to a filehandle. It might have been acceptable
>>> to do ls in perl and then cat in foreach loop.
>>
>> I'm confused. stdout *is* a filehandle. Didn't you want to cat to
>> the standard output?
>
> Yes, thats what I want. However I can happily 'cat' every file with
> SVN binary itself in a lets say for loop generated from 'ls'.
> Only difference in perl bindings would be, that I don't have to start
> svn binary at all. But I would have to call the perl script inside
> another script, so that I could get the data in perl array. While
> what I'd like to do, is to directly either a) in perl put the data
> in array or b) make svn binary output to stdout each file in
> directory.

Can't you have one per script which does *only* the equivalent of cvs -p
through the Perl bindings, and then you run it in pipe with the other one
which processes the output? Composition of small components through pipes is
how this kind of scripts is always designed.

-- 
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 18 14:03:36 2006

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.