From: Brendan Cully Date: Mon, 17 Jan 2005 02:24:49 +0000 (+0000) Subject: cvs log emits a timezone after the hour, at least here. Adjust date regexp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe658e15493ffa0127635a1e5b5d85e52286cba3;p=neomutt cvs log emits a timezone after the hour, at least here. Adjust date regexp to handle that case. --- diff --git a/cvslog2changelog.pl b/cvslog2changelog.pl index 6f083ef3f..1f8b3be01 100644 --- a/cvslog2changelog.pl +++ b/cvslog2changelog.pl @@ -38,11 +38,11 @@ while (<>) { } } elsif ($_ =~ /^revision ([0-9.]*)/) { $change->{revision} = $1; - } elsif ($_ =~ /^date: ([^; ]*) ([^; ]*); author: ([^;]*);/) { + } elsif ($_ =~ /^date: ([^; ]*) ([^; ]*)( \+[0-9]+)?; author: ([^;]*);/) { $change->{date} = $1; $change->{hour} = $2; - $change->{author} = $Authors{$3} ? $Authors{$3} : $3; - $change->{committed} = $3; + $change->{author} = $Authors{$3} ? $Authors{$3} : $4; + $change->{committed} = $4; } elsif ($_ =~ /^From: (.*)$/) { $change->{author} = $1; } elsif ($change->{revision}) {