Re: checkout to stdout (cvs -p)?
From: David M. Jones <dmj_at_ams.org>
Date: 2006-06-19 20:24:02 CEST
My apologies for a post that is both belated and somewhat off-topic,
The original question was how to get the SVN::Client cat method to put
$ctx->cat (\*STDOUT, 'http://svn.collab.net/repos/svn/trunk/README',
I posted a quick and dirty hack that I called StringHandle.pm that
It turns out I was doubly hasty. First, I somehow overlooked at least
http://search.cpan.org/~dskoll/IO-stringy-2.110/lib/IO/Scalar.pm
Second, as noted in the documentation for IO::String, perl 5.8 has
#!/usr/bin/perl -w
open(my $fh, ">", \$buffer) or die "Can't open \$buffer for writing: $!\n";
$buffer =~ s/Subversion/SVN/g;
open($fh, "<", \$buffer) or die "Can't open \$buffer for reading: $!\n";
Cheers,
---------------------------------------------------------------------
|
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.