Subject: | Couldn't parse rlog:\n\nRCS file: .... |
Kwiki 0.38, Spiffy 0.24, Kwiki::Archive::Cvs 0.1
Problem
* The revision number $rev should always start with major version number 1. Kwiki::Archive::Cvs::fetch_metadata() would cause problems as follow.
Couldn't parse rlog:\n\nRCS file: ... [snip]
Quick fix
-----------------------------------------------------------------
sub fetch_metadata {
my $page = shift;
my $rev = shift;
- my $rlog = io("cvs -Q -d ".$self->cvsRoot($page)." log -r$rev ".$page->io." |") or die $!;
+ my $rlog = io("cvs -Q -d ".$self->cvsRoot($page)." log -r1.$rev ".$page->io." |") or die $!;
$rlog->utf8 if $self->use_utf8;
$self->parse_metadata($rlog->all);
}
-----------------------------------------------------------------