Add the VCS ID as extra information to the ivy file.
Use the version builder to filter the ivy files. Use a custom XSL file to generate the ivy report.