746 |
if $subjectPrefix == nil |
if $subjectPrefix == nil |
747 |
$subjectPrefix = "[CVS #{Repository.array.join(',')}]" |
$subjectPrefix = "[CVS #{Repository.array.join(',')}]" |
748 |
end |
end |
749 |
$fileEntries.each do |file| |
# HACK: put all file names at mail subject |
750 |
unless file.repository == $subjectPrefix |
all_files = "" |
751 |
last_repository = file.repository |
$fileEntries.each do |file| |
752 |
file = #{htmlEncode(last_repository.common_prefix)} |
name = htmlEncode(file.name_after_common_prefix) |
753 |
all_files = all_files + " " + file |
if all_files != "" |
754 |
end |
all_files = all_files + ";" + name |
755 |
|
else |
756 |
|
all_files = name |
757 |
end |
end |
758 |
mailSubject = all_files |
end |
759 |
mailSubject = "#{$subjectPrefix} #{$mailSubject}" |
|
760 |
|
mailSubject = "#{$subjectPrefix} #{all_files}: #{$mailSubject}" |
761 |
if mailSubject.length > $maxSubjectLength |
if mailSubject.length > $maxSubjectLength |
762 |
mailSubject = mailSubject[0, $maxSubjectLength] |
mailSubject = mailSubject[0, $maxSubjectLength] |
763 |
end |
end |
857 |
end |
end |
858 |
lastPath = thisPath |
lastPath = thisPath |
859 |
end |
end |
860 |
|
if all_files == nil |
861 |
|
all_files = name |
862 |
|
else |
863 |
|
all_files = all_files + " " + name |
864 |
|
end |
865 |
if file.addition? |
if file.addition? |
866 |
name = "<span id=\"added\">#{name}</span>" |
name = "<span id=\"added\">#{name}</span>" |
867 |
elsif file.removal? |
elsif file.removal? |
903 |
mail.print("<td align=\"center\">#{viewcvsFile(file.path,file.fromVer)} #{viewcvsDiff(file)} #{viewcvsFile(file.path,file.toVer)}</td>") |
mail.print("<td align=\"center\">#{viewcvsFile(file.path,file.fromVer)} #{viewcvsDiff(file)} #{viewcvsFile(file.path,file.toVer)}</td>") |
904 |
end |
end |
905 |
|
|
906 |
mail.puts("</tr>") |
mail.puts("</tr>") |
907 |
end |
end |
908 |
|
|
909 |
if $fileEntries.size>1 |
if $fileEntries.size>1 |
910 |
# give total number of lines added/removed accross all files |
# give total number of lines added/removed accross all files |
911 |
mail.print("<tr><td> </td>") |
mail.print("<tr><td> </td>") |
973 |
mail.puts("</body></html>") |
mail.puts("</body></html>") |
974 |
|
|
975 |
end |
end |
976 |
|
|