]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/bzr.pm
update
[git.ikiwiki.info.git] / IkiWiki / Plugin / bzr.pm
index 7eb5cfe93dd9987d63634c05ae51193c97f08915..0efc26b4990ee1d2c7f83912c41bc23bdd085677 100644 (file)
@@ -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;
 }