public long fetchFile(String path, long revision, OutputStream os, SVNProperties properties) throws SVNException {
return repos2.getFile(path, revision, properties, os);
}
};
ISVNUpdateEditor editor = wcAccess.createUpdateEditor(adminInfo, null, allowUnversionedObstructions,
depthIsSticky, depth, preservedExts, fileFetcher, isUpdateLocksOnDemand());
ISVNEditor filterEditor = SVNAmbientDepthFilterEditor.wrap(editor, adminInfo, depthIsSticky);
try {
repos.update(revNumber, target, depth, sendCopyFrom, reporter, SVNCancellableEditor.newInstance(filterEditor, this, getDebugLog()));
} finally {
repos2.closeSession();
}
long targetRevision = editor.getTargetRevision();
if (targetRevision >= 0) {
if ((depth == SVNDepth.INFINITY || depth == SVNDepth.UNKNOWN) && !isIgnoreExternals()) {
handleExternals(wcAccess, adminInfo.getAnchor().getRoot(),
adminInfo.getOldExternals(), adminInfo.getNewExternals(), adminInfo.getDepths(), url, reposRoot, depth, false, true);