for (long currentRev = lastMergedRevision + 1; currentRev <= fromLatestRevision; currentRev++) {
toRepos.setRevisionPropertyValue(0, SVNRevisionProperty.CURRENTLY_COPYING, SVNProperty.toString(currentRev));
SVNSynchronizeEditor syncEditor = new SVNSynchronizeEditor(toRepos, mySyncHandler, currentRev - 1);
ISVNEditor cancellableEditor = SVNCancellableEditor.newInstance(syncEditor, this, getDebugLog());
try {
fromRepos.replay(0, currentRev, true, cancellableEditor);
} catch (SVNException e) {
try {
cancellableEditor.abortEdit();
} catch (SVNException abortError) {}
throw e;