SVNRevision revision = (SVNRevision) ourValidRevisions.get(value .toUpperCase());
try { long number = Long.parseLong(value); return SVNRevision.create(number); } catch (NumberFormatException nfe) { } SVNRevision revision = (SVNRevision) ourValidRevisions.get(value.toUpperCase());
    public static SVNRevision parse(String value) {        if (value == null) {            return SVNRevision.UNDEFINED;        }        if (value.startsWith("-r")) {            value = value.substring("-r".length());        }        value = value.trim();        if (value.startsWith("{") && value.endsWith("}")) {            value = value.substring(1);            value = value.substring(0, value.length() - 1);            try {                Date date = SimpleDateFormat.getDateInstance().parse(value);                return SVNRevision.create(date);            } catch (ParseException e) {                return SVNRevision.UNDEFINED;            }        } else {            try {                long number = Long.parseLong(value);                return SVNRevision.create(number);            } catch (NumberFormatException nfe) {            }        }        SVNRevision revision = (SVNRevision) ourValidRevisions.get(value                .toUpperCase());        if (revision == null) {            return UNDEFINED;        }        return revision;    }