path = getRelativePath(path);
path = SVNPathUtil.append(getRepositoryRoot().getPath(), path); if (path.equals(getLocation().getPath())) { path = ""; } else { path = path.substring(getLocation().getPath().length() + 1); }
    public int getLocations(String path, long pegRevision, long[] revisions, ISVNLocationEntryHandler handler) throws SVNException {        try {            openConnection();            if (path.startsWith("/")) {                path = getRelativePath(path);            }            StringBuffer request = DAVLocationsHandler.generateLocationsRequest(null, path, pegRevision, revisions);                        DAVLocationsHandler davHandler = new DAVLocationsHandler(handler);            String root = getLocation().getPath();            root = SVNEncodingUtil.uriEncode(root);            DAVBaselineInfo info = DAVUtil.getBaselineInfo(myConnection, root, pegRevision, false, false, null);                        path = SVNPathUtil.append(info.baselineBase, info.baselinePath);            myConnection.doReport(path, request, davHandler);                        return davHandler.getEntriesCount();        } finally {            closeConnection();        }    }