public XWikiAttachment getAttachmentRevision(String rev, XWikiContext context) throws XWikiException { if (StringUtils.equals(rev, this.getVersion())) { return this; } return loadArchive(context).getRevision(this, rev, context); }
final String versionName = versions[i].toString(); final XWikiAttachment attachVer = archive.getRevision(archive.getAttachment(), versionName, context); attachmentVersions.add(attachVer);
final String versionName = versions[i].toString(); final XWikiAttachment attachVer = archive.getRevision(archive.getAttachment(), versionName, context); attachmentVersions.add(attachVer);