use a more idiomatic foreach my
parent
04014e4775
commit
906c8f6e58
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue