bridgeEditor = new SVNReplicationEditor(src, commitEditor);
bridgeEditor = new SVNReplicationEditor(src, commitEditor, currentRevision[0]);
    public static long replicateRepository(SVNRepository src, SVNRepository dst, long toRevision) throws SVNException {        //assertion: we assume that the target repository is clear         if(dst.getLatestRevision() != 0) {            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "The target repository''s latest revision must be ''{0}''", new Long(0));            SVNErrorManager.error(err);        }        src.testConnection();        long latestRev = src.getLatestRevision();        latestRev = toRevision > 0 && toRevision <= latestRev ? toRevision : latestRev;                ISVNEditor bridgeEditor = null;        for(long i = 1; i <= latestRev; i++) {            SVNDebugLog.logInfo("Replicating revision #" + i);            Map revisionProps = src.getRevisionProperties(i, null);            String commitMessage = (String)revisionProps.get(SVNRevisionProperty.LOG);            commitMessage = commitMessage == null ? "" : commitMessage;            ISVNEditor commitEditor = dst.getCommitEditor(commitMessage, null);            try {                bridgeEditor = new SVNReplicationEditor(src, commitEditor);                final long previousRev = i - 1;                src.update(i, null, true, new ISVNReporterBaton(){                    public void report(ISVNReporter reporter) throws SVNException {                        reporter.setPath("", null, previousRev, false);                        reporter.finishReport();                    }                            }, bridgeEditor);            } catch(SVNException svne) {                bridgeEditor.abortEdit();                throw svne;            }            for (Iterator names = revisionProps.keySet().iterator(); names.hasNext();) {                String name = (String) names.next();                String value = (String) revisionProps.get(name);                if (name != null && value != null) {                    dst.setRevisionPropertyValue(i, name, value);                }            }        }        return latestRev;    }