info = DAVUtil.getBaselineInfo(myConnection, path, -1, false, true, info);
if (getRepositoryRoot() != null && getRepositoryRoot().getPath().equals(getLocation().getPath())) { final long[] revision = new long[] {-1}; myConnection.doPropfind(path, 0, null, new DAVElement[] {DAVElement.VERSION_NAME}, new IDAVResponseHandler() { public void handleDAVResponse(DAVResponse response) { String value = (String) response.getPropertyValue(DAVElement.VERSION_NAME); if (value != null) { try { revision[0] = Long.parseLong(value); } catch (NumberFormatException nfe) {} } } }); if (revision[0] >= 0) { return revision[0]; } } DAVBaselineInfo info = DAVUtil.getBaselineInfo(myConnection, path, -1, false, true, null); if (info == null) { SVNErrorManager.error("svn: Cannot get baseline information for '" + getLocation() + "'"); } return info.revision;
    public long getLatestRevision() throws SVNException {        DAVBaselineInfo info = null;        try {            openConnection();            String path = getLocation().getPath();            path = SVNEncodingUtil.uriEncode(path);            info = DAVUtil.getBaselineInfo(myConnection, path, -1, false, true, info);        } finally {            closeConnection();        }        if (info == null) {            SVNErrorManager.error("svn: Cannot get baseline information for '" + getLocation() + "'");        }        return info.revision;    }