package IkiWiki;
-sub bazaar_log($) {
+sub bazaar_log ($) { #{{{
my $out = shift;
my @infos = ();
my $key = undef;
if ($line =~ /^message:/) {
$key = "message";
$infos[$#infos]{$key} = "";
- } elsif ($line =~ /^(modified|added|renamed|renamed and modified|removed):/) {
+ }
+ elsif ($line =~ /^(modified|added|renamed|renamed and modified|removed):/) {
$key = "files";
unless (defined($infos[$#infos]{$key})) { $infos[$#infos]{$key} = ""; }
- } elsif (defined($key) and $line =~ /^ (.*)/) {
+ }
+ elsif (defined($key) and $line =~ /^ (.*)/) {
$infos[$#infos]{$key} .= $1;
- } elsif ($line eq "------------------------------------------------------------\n") {
+ }
+ elsif ($line eq "------------------------------------------------------------\n") {
$key = undef;
push (@infos, {});
- } else {
+ }
+ else {
chomp $line;
($key, $value) = split /: +/, $line, 2;
$infos[$#infos]{$key} = $value;
close $out;
return @infos;
-}
+} #}}}
sub rcs_update () { #{{{
- my @cmdline = ("bzr", "$config{srcdir}", "update");
+ my @cmdline = ("bzr", $config{srcdir}, "update");
if (system(@cmdline) != 0) {
warn "'@cmdline' failed: $!";
}
return @ret;
} #}}}
-sub rcs_notify () { #{{{
- # TODO
-} #}}}
-
sub rcs_getctime ($) { #{{{
my ($file) = @_;