changeset 13851:ba09719a1c17

3262 webrev only includes oldest cset comment when file changes multiple times Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@nexenta.com>
author Richard Lowe <richlowe@richlowe.net>
date Fri, 05 Oct 2012 18:45:33 -0400
parents 96ac23c747ac
children dc1b5bc72558
files usr/src/tools/scripts/webrev.sh
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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