static Annotation annotate(File file, String revision, File rcsFile)
throws IOException {
try {
Archive archive = new Archive(rcsFile.getPath());
// If revision is null, use current revision
Version version = revision == null ? archive.getRevisionVersion() : archive.getRevisionVersion(revision);
// Get the revision with annotation
archive.getRevision(version, true);
Annotation a = new Annotation(file.getName());
// A comment in Archive.getRevisionNodes() says that it is not
// considered public API anymore, but it works.