return;
}
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;
}
cancellableEditor.closeEdit();
if (syncEditor.getCommitInfo().getNewRevision() != currentRev) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Commit created rev {0,number,integer} but should have created {1,number,integer}", new Long[] {
new Long(syncEditor.getCommitInfo().getNewRevision()), new Long(currentRev)
});
SVNErrorManager.error(err);
}
copyRevisionProperties(fromRepos, toRepos, currentRev, true);
toRepos.setRevisionPropertyValue(0, SVNRevisionProperty.LAST_MERGED_REVISION, SVNProperty.toString(currentRev));