")
end
if file.addition?
filesAdded += 1
elsif file.removal?
filesRemoved += 1
elsif file.modification?
filesModified += 1
end
name = htmlEncode(file.name_after_common_prefix)
slashPos = name.rindex("/")
if slashPos==nil
prefix = ""
else
thisPath = name[0,slashPos]
name = name[slashPos+1,name.length]
if thisPath == lastPath
prefix = " "*(slashPos) + "/"
else
prefix = thisPath + "/"
end
lastPath = thisPath
end
if file.addition?
name = "#{name}"
elsif file.removal?
name = "#{name}"
elsif file.modification?
name = "#{name}"
end
mail.print("| #{prefix}#{name} | ")
if file.addition?
mail.print("tag added to #{$frontend.version(file.path,file.toVer)} | ")
elsif file.removal?
mail.print("tag removed from #{$frontend.version(file.path,file.fromVer)} | ")
elsif file.modification?
mail.print("tag moved from #{$frontend.version(file.path,file.fromVer)} to #{$frontend.version(file.path,file.toVer)} | ")
end
mail.puts("
")
end
mail.puts("