X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2a15f9415979e809ef332bdcffa83ff168d5bbef..aaaef740107aacd8f6987711da6895c02e4473ad:/IkiWiki/Plugin/bzr.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/bzr.pm b/IkiWiki/Plugin/bzr.pm index 7eb5cfe93..0efc26b49 100644 --- a/IkiWiki/Plugin/bzr.pm +++ b/IkiWiki/Plugin/bzr.pm @@ -83,15 +83,13 @@ sub bzr_log ($) { } elsif ($line =~ /^(modified|added|renamed|renamed and modified|removed):/) { $key = "files"; - unless (defined($info{$key})) { $info{$key} = ""; } + $info{$key} = "" unless defined $info{$key}; } elsif (defined($key) and $line =~ /^ (.*)/) { $info{$key} .= "$1\n"; } elsif ($line eq "------------------------------------------------------------\n") { - if (keys %info) { - push (@infos, {%info}); - } + push @infos, {%info} if keys %info; %info = (); $key = undef; } @@ -108,6 +106,7 @@ sub bzr_log ($) { } } close $out; + push @infos, {%info} if keys %info; return @infos; }