long endRev = getRevisionNumber(endRevision, repos, path);
long startRev = getRevisionNumber(startRevision, repos, path);
if (endRev < startRev) {
SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.CLIENT_BAD_REVISION, "Start revision must precede end revision"), SVNLogType.DEFAULT);
}
File tmpFile = new Resource(path.getParentFile(), SVNFileUtil.getAdminDirectoryName());
tmpFile = new Resource(tmpFile, "tmp/text-base");
if (!tmpFile.isDirectory()) {
tmpFile = SVNFileUtil.createTempDirectory("annotate");
}
doAnnotate(path.getAbsolutePath(), startRev, tmpFile, repos, endRev, ignoreMimeType, handler,
inputEncoding, includeMergedRevisions);
}