use a more idiomatic foreach my
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 12 Aug 2009 16:43:57 +0000 (12:43 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 12 Aug 2009 16:43:57 +0000 (12:43 -0400)
IkiWiki/Plugin/monotone.pm

index bdb564a71c30befd8d219e0796d58e5d52b7dcb3..05c5a514dc3f22c6b58de298b007c16a9208d89f 100644 (file)
@@ -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)) {