return number;
return -1;
    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;            }