SVNRepository repository = myRepositoryFactory.createRepository(url); if (revision.getDate() != null) { return repository.getDatedRevision(revision.getDate());
SVNWCAccess wcAccess = SVNWCAccess.create(file);  if (revision.getDate() != null || revision == SVNRevision.HEAD) { String url = wcAccess.getTargetEntryProperty(SVNProperty.URL); SVNRepository repository = myRepositoryFactory.createRepository(url); return revision.getDate() != null ? repository.getDatedRevision(revision.getDate()) : repository.getLatestRevision();
    protected long getRevisionNumber(String url, SVNRevision revision) throws SVNException {        if (revision.getNumber() >= 0) {            return revision.getNumber();        }        SVNRepository repository = myRepositoryFactory.createRepository(url);                    if (revision.getDate() != null) {            return repository.getDatedRevision(revision.getDate());        }        long number = repository.getLatestRevision();        if (revision == SVNRevision.PREVIOUS) {            number--;        }        return number;            }