aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-29 19:36:35 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-29 19:36:35 -0500
commit274fb900263bdd460797629ebdc960dc09ef42c0 (patch)
tree2b11784c09bd73dd171d978c3506db1a081a2b4a /IkiWiki
parentcddc335b2bd98a302b261200c12d61b05476d727 (diff)
downloadikiwiki-274fb900263bdd460797629ebdc960dc09ef42c0.tar
ikiwiki-274fb900263bdd460797629ebdc960dc09ef42c0.tar.gz
stylistic changes
Remarkably few. Also, I removed the stub for the obsolete rcs_notify function.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Rcs/bazaar.pm22
1 files changed, 11 insertions, 11 deletions
diff --git a/IkiWiki/Rcs/bazaar.pm b/IkiWiki/Rcs/bazaar.pm
index 80aba6a45..8ca4ec07a 100644
--- a/IkiWiki/Rcs/bazaar.pm
+++ b/IkiWiki/Rcs/bazaar.pm
@@ -8,7 +8,7 @@ use open qw{:utf8 :std};
package IkiWiki;
-sub bazaar_log($) {
+sub bazaar_log ($) { #{{{
my $out = shift;
my @infos = ();
my $key = undef;
@@ -19,15 +19,19 @@ sub bazaar_log($) {
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;
@@ -36,10 +40,10 @@ sub bazaar_log($) {
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: $!";
}
@@ -135,10 +139,6 @@ sub rcs_recentchanges ($) { #{{{
return @ret;
} #}}}
-sub rcs_notify () { #{{{
- # TODO
-} #}}}
-
sub rcs_getctime ($) { #{{{
my ($file) = @_;