# HG changeset patch # User Richard Lowe # Date 1349477133 14400 # Node ID ba09719a1c174bfee7e01bca37801f0b6cf90334 # Parent 96ac23c747aca952d2e76d8b80b1a7b98dc2e465 3262 webrev only includes oldest cset comment when file changes multiple times Reviewed by: Igor Kozhukhov Reviewed by: Garrett D'Amore Approved by: Dan McDonald diff -r 96ac23c747ac -r ba09719a1c17 usr/src/tools/scripts/webrev.sh --- a/usr/src/tools/scripts/webrev.sh Tue Oct 09 16:46:55 2012 -0400 +++ b/usr/src/tools/scripts/webrev.sh Fri Oct 05 18:45:33 2012 -0400 @@ -1806,11 +1806,11 @@ chomp; if (/^R(\d+)\s+([^ ]+)\s+([^ ]+)/) { # rename if ($1 >= 75) { # Probably worth treating as a rename - $realfiles{$3} = $2 + $realfiles{$3} = $2; } else { $realfiles{$3} = $3; $realfiles{$2} = $2; - } + } } else { my $f = (split /\s+/, $_)[1]; $realfiles{$f} = $f; @@ -1826,7 +1826,8 @@ my $fname = (split /\t/, $_)[1]; next if !defined($realfiles{$fname}); # No real change $state = 1; - $files{$fname} = $msg; + chomp $msg; + $files{$fname} .= $msg; } else { if ($state == 1) { $state = 0; @@ -1839,9 +1840,9 @@ for (sort keys %files) { if ($realfiles{$_} ne $_) { - print "$_ $realfiles{$_}\n$files{$_}\n"; + print "$_ $realfiles{$_}\n$files{$_}\n\n"; } else { - print "$_\n$files{$_}\n" + print "$_\n$files{$_}\n\n" } }' ${parent} > $TMPFLIST