use a more idiomatic foreach my

master
Joey Hess 2009-08-12 12:43:57 -04:00
parent 04014e4775
commit 906c8f6e58
1 changed files with 1 additions and 2 deletions

View File

@ -575,13 +575,12 @@ sub rcs_recentchanges ($) {
} }
my @changed_files = get_changed_files($automator, $rev); my @changed_files = get_changed_files($automator, $rev);
my $file;
my ($out, $err) = $automator->call("parents", $rev); my ($out, $err) = $automator->call("parents", $rev);
my @parents = ($out =~ m/^($sha1_pattern)$/); my @parents = ($out =~ m/^($sha1_pattern)$/);
my $parent = $parents[0]; my $parent = $parents[0];
foreach $file (@changed_files) { foreach my $file (@changed_files) {
next unless length $file; next unless length $file;
if (defined $config{diffurl} and (@parents == 1)) { if (defined $config{diffurl} and (@parents == 1)) {