[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: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-17 15:30:18 CEST

On May 17, 2006, at 13:03, Saku Ytti wrote:

>>> My SVN alternative seems to be 'ls' the directory then 'cat' each
>>
>> I'm not familiar with CVS. You want to send multiple files from the
>> repository directly to stdout, all concatenated together? I don't
>> think Subversion does that. I only know "svn cat" which will output
>> one file to stdout.
>
> Yes, cat method is the one I explained, but it's quite suboptimal
> due to need of run svn instance for each file, quite expensive.
> But indeed that is what I want, concatane multiple files to stdout
> or just checkout to stdout (which will give extra stuff that I don't
> need, but can workaround easily).
>
> 'svn cat file:///foo/bar/*' would be optimal.

Well, I don't think there's anything like that. There are, however,
language bindings available for many languages, including Python,
Perl, Java, Ruby, C++, C# and PHP. You could probably write a script
in one of these languages which would do what you want, and due to
the language bindings it should be considerably faster than
repeatedly calling the svn command line client.

http://subversion.tigris.org/links.html#bindings

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 17 15:32:26 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.