SVNRepository fromRepos = createRepository(fromURL, true);
SVNRepository fromRepos = createRepository(fromURL, false);
    public void doInitialize(SVNURL fromURL, SVNURL toURL) throws SVNException {        SVNRepository toRepos = createRepository(toURL, true);        checkIfRepositoryIsAtRoot(toRepos, toURL);                SVNException error = null;        lock(toRepos);        try {            long latestRevision = toRepos.getLatestRevision();            if (latestRevision != 0) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot initialize a repository with content in it");                SVNErrorManager.error(err);            }                        String fromURLProp = toRepos.getRevisionPropertyValue(0, SVNRevisionProperty.FROM_URL);            if (fromURLProp != null) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Destination repository is already synchronizing from ''{0}''", fromURLProp);                SVNErrorManager.error(err);            }                        SVNRepository fromRepos = createRepository(fromURL, true);            checkIfRepositoryIsAtRoot(fromRepos, fromURL);                        toRepos.setRevisionPropertyValue(0, SVNRevisionProperty.FROM_URL, fromURL.toDecodedString());            String uuid = fromRepos.getRepositoryUUID(true);            toRepos.setRevisionPropertyValue(0, SVNRevisionProperty.FROM_UUID, uuid);            toRepos.setRevisionPropertyValue(0, SVNRevisionProperty.LAST_MERGED_REVISION, "0");                        Map revProps = fromRepos.getRevisionProperties(0, null);            for (Iterator propNames = revProps.keySet().iterator(); propNames.hasNext();) {                String propName = (String) propNames.next();                String propValue = (String) revProps.get(propName);                if (!propName.startsWith("svn:sync-")) {                    toRepos.setRevisionPropertyValue(0, propName, propValue);                }            }        } finally {            try {                unlock(toRepos);            } catch (SVNException svne) {                error = svne;            }        }                if (error != null) {            throw error;        }    }