]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/monotone.pm
Merge commit 'schmonz/master' into cvs
[ikiwiki.git] / IkiWiki / Plugin / monotone.pm
index 38abb9a07f21a3cc53ef430a012fb0528ba841a0..05c5a514dc3f22c6b58de298b007c16a9208d89f 100644 (file)
@@ -559,7 +559,7 @@ sub rcs_recentchanges ($) {
                                        if ($cert->{key} eq $config{mtnkey}) {
                                                $committype = "web";
                                        } else {
-                                               $committype = "monotone";
+                                               $committype = "mtn";
                                        }
                                } elsif ($cert->{name} eq "date") {
                                        $when = str2time($cert->{value}, 'UTC');
@@ -575,13 +575,12 @@ sub rcs_recentchanges ($) {
                }
                
                my @changed_files = get_changed_files($automator, $rev);
-               my $file;
                
                my ($out, $err) = $automator->call("parents", $rev);
                my @parents = ($out =~ m/^($sha1_pattern)$/);
                my $parent = $parents[0];
 
-               foreach $file (@changed_files) {
+               foreach my $file (@changed_files) {
                        next unless length $file;
                        
                        if (defined $config{diffurl} and (@parents == 1)) {