webrev revision 8109
8109N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8109N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8109N/A# HTML page header template for index.html
8109N/A# HTML page footer template for index.html
8109N/Amy %file_status;
8109N/A $file_status{$7} = $1;
8109N/A $file_prop{$7} = $2;
8109N/A $file_hist{$7} = $4;
8109N/A my $webrev_dir = shift;
8109N/A my $webrev_dir = shift;
8109N/A my $webrev_dir = shift;
8109N/A system ("rm -f $webrev_dir/$file/old.$basename; svn cat -r BASE $file > $webrev_dir/$file/old.$basename");
8109N/A my $webrev_dir = shift;
8109N/A my $webrev_dir = shift;
8109N/A my $indent_len = shift;
8109N/A my $webrev_dir = shift;
8109N/A my @diff = `cd $webrev_dir/$file; /usr/bin/diff -U $SDIFF_CONTEXT old.$basename new.$basename`;
8109N/A my $left_line;
8109N/A my $right_line;
8109N/A my $n = push_line (\@right, "<FONT COLOR=\"blue\">$right_line ", $1, "</FONT>\n", $line_nr_len);
8109N/A my $n1 = push_line (\@left, "<FONT COLOR=\"blue\">$left_line ", $line2, "</FONT>\n", $line_nr_len);
8109N/A my $n2 = push_line (\@right, "<FONT COLOR=\"blue\">$right_line ", $line1, "</FONT>\n", $line_nr_len);
8109N/A my $n = push_line (\@right, "<FONT COLOR=\"blue\">$right_line ", $line1, "</FONT>\n", $line_nr_len);
8109N/A my $n = push_line (\@left, "<FONT COLOR=\"brown\">$left_line ", $line2, "</FONT>\n", $line_nr_len);
8109N/A my $webrev_dir = shift;
8109N/A system ("rm -f $webrev_dir/$file/$basename.diff; svn diff $file > $webrev_dir/$file/$basename.diff");
8109N/A my $webrev_dir = shift;
8109N/A my $total_new = 0;
8109N/A my $total_deleted = 0;
8109N/A my $total_changed = 0;
8109N/A my $total_unchanged = 0;
8109N/A my $total_non_svn = 0;
8109N/A $total_new += $lines;
8109N/A my $changed_lines = `diff -c $webrev_dir/$file/old.$basename $webrev_dir/$file/new.$basename | grep '^! ' | wc -l`;
8109N/A my $deleted_lines = `diff -c $webrev_dir/$file/old.$basename $webrev_dir/$file/new.$basename | grep '^- ' | wc -l`;
8109N/A my $new_lines = `diff -c $webrev_dir/$file/old.$basename $webrev_dir/$file/new.$basename | grep '^+ ' | wc -l`;
8109N/A print INDEX "$new_lines line(s) new / $deleted_lines line(s) deleted / $changed_lines line(s) updated / $unchanged_lines line(s) unchanged\n";
8109N/A print INDEX $changelog_entry{$file};
8109N/A print INDEX "<B>Total</B>: $total_new line(s) new / $total_deleted line(s) deleted / $total_changed line(s) updated / $total_unchanged line(s) unchanged<BR>\n";