Skip Menu |

This queue is for tickets about the SVN-Dump CPAN distribution.

Report information
The Basics
Id: 22429
Status: resolved
Priority: 0/
Queue: SVN-Dump

People
Owner: book [...] cpan.org
Requestors: CLKAO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: 0.02



Attached is a patch that allows svn::dump to read from a fh.
Subject: svndump-fh.patch
diff -ru lib/SVN/Dump.pm /usr/local/lib/perl5/site_perl/5.8.8/SVN/Dump.pm --- lib/SVN/Dump.pm Wed Oct 18 09:30:21 2006 +++ /usr/local/lib/perl5/site_perl/5.8.8/SVN/Dump.pm Sun Oct 22 17:03:38 2006 @@ -13,7 +13,10 @@ # create the Reader object now my $self = bless {}, $class; - open my $fh, $args->{file} or croak "Can't open $args->{file}: $!"; + my $fh = $args->{fh}; + if (!$fh) { + open $fh, $args->{file} or croak "Can't open $args->{file}: $!"; + } $self->{reader} = SVN::Dump::Reader->new( $fh ); return $self; Only in /usr/local/lib/perl5/site_perl/5.8.8/SVN/: Mirror Only in /usr/local/lib/perl5/site_perl/5.8.8/SVN/: Mirror.pm Only in /usr/local/lib/perl5/site_perl/5.8.8/SVN/: Simple
On Sun Oct 22 20:46:31 2006, CLKAO wrote: Show quoted text
> Attached is a patch that allows svn::dump to read from a fh.
Thanks. I've applied it, and it will be included in version 0.02