SVNErrorManager.error(err, SVNLogType.WC); if (!ambientDepth.isRecursive() || !requestedDepth.isRecursive()) {
SVNErrorManager.error(err, SVNLogType.WC); if (!ambientDepth.isRecursive() || !requestedDepth.isRecursive()) { continue;
SVNErrorManager.error(err, SVNLogType.WC); if (!ambientDepth.isRecursive() || !requestedDepth.isRecursive()) {
SVNPath target = targets.size() == 2 ? new SVNPath((String) targets.get(1)) : new SVNPath(""); SVNPath to = new SVNPath((String) targets.get(0)); client.doRelocate(target.getFile(), null, to.getURL(), getSVNEnvironment().getDepth().isRecursive()); } else { if (targets.get(0).equals(targets.get(1))) { client.doRelocate(target.getFile(), from.getURL(), to.getURL(), getSVNEnvironment().getDepth().isRecursive()); } else { for(int i = 2; i < targets.size(); i++) { SVNPath target = new SVNPath((String) targets.get(i)); client.doRelocate(target.getFile(), from.getURL(), to.getURL(), getSVNEnvironment().getDepth().isRecursive());
SVNPath target = targets.size() == 2 ? new SVNPath((String) targets.get(1)) : new SVNPath(""); SVNPath to = new SVNPath((String) targets.get(0)); client.doRelocate(target.getFile(), null, to.getURL(), getSVNEnvironment().getDepth().isRecursive()); } else { if (targets.get(0).equals(targets.get(1))) { client.doRelocate(target.getFile(), from.getURL(), to.getURL(), getSVNEnvironment().getDepth().isRecursive()); } else { for(int i = 2; i < targets.size(); i++) { SVNPath target = new SVNPath((String) targets.get(i)); client.doRelocate(target.getFile(), from.getURL(), to.getURL(), getSVNEnvironment().getDepth().isRecursive());
} catch (SVNException e) { SVNErrorMessage err = e.getErrorMessage(); if (!depth.isRecursive() && err.getErrorCode() == SVNErrorCode.WC_NOT_LOCKED) { err = err.wrap("Try 'svn revert --recursive' instead?"); } else if (!depth.isRecursive() && err.getErrorCode() == SVNErrorCode.WC_INVALID_OPERATION_DEPTH) { err = err.wrap("Try 'svn revert --depth infinity' instead?");
} catch (SVNException e) { SVNErrorMessage err = e.getErrorMessage(); if (!depth.isRecursive() && err.getErrorCode() == SVNErrorCode.WC_NOT_LOCKED) { err = err.wrap("Try 'svn revert --recursive' instead?"); } else if (!depth.isRecursive() && err.getErrorCode() == SVNErrorCode.WC_INVALID_OPERATION_DEPTH) { err = err.wrap("Try 'svn revert --depth infinity' instead?");
SVNDepth reportDepth = ths.depth; if (!depth.isRecursive()) { reportDepth = SVNDepth.EMPTY; || dirDepth == SVNDepth.FILES || (dirDepth == SVNDepth.IMMEDIATES && ths.depth != SVNDepth.EMPTY) || (ths.depth.compareTo(SVNDepth.INFINITY) < 0 && depth.isRecursive())) { reporter.setPath(thisReportRelpath, ths.lock != null ? ths.lock.token : null, ths.revision, reportDepth, startEmpty); if (depth.isRecursive()) { File reposRelPath = ths.reposRelPath; if (reposRelPath == null) {
@Override protected Void run() throws SVNException { SVNUpdateClient16 client = new SVNUpdateClient16(getOperation().getRepositoryPool(), getOperation().getOptions()); client.setIgnoreExternals(getOperation().isIgnoreExternals()); client.setEventHandler(getOperation().getEventHandler()); client.doCanonicalizeURLs(getOperation().getFirstTarget().getFile(), getOperation().isOmitDefaultPort(), getOperation().getDepth().isRecursive()); return null; }
if (getOperation().isIncludeExternals() && depth.isRecursive()) { final Map<File, File> externals = context.getDb().getExternalsDefinedBelow(getFirstTarget()); if (externals != null) {
if (success) { String path = SVNCommandUtil.getLocalPath(targetName); String message = depth.isRecursive() ? "property ''{0}'' deleted (recursively) from ''{1}''." : "property ''{0}'' deleted from ''{1}''.";
if (success) { String path = SVNCommandUtil.getLocalPath(targetName); String message = depth.isRecursive() ? "property ''{0}'' deleted (recursively) from ''{1}''." : "property ''{0}'' deleted from ''{1}''.";
if (success) { String path = SVNCommandUtil.getLocalPath(targetName); String message = depth.isRecursive() ? "property ''{0}'' set (recursively) on ''{1}''" : "property ''{0}'' set on ''{1}''";
if (success) { String path = SVNCommandUtil.getLocalPath(targetName); String message = depth.isRecursive() ? "property ''{0}'' set (recursively) on ''{1}''" : "property ''{0}'' set on ''{1}''";
throw e; if (depth.isRecursive() && !getOperation().isIgnoreExternals()) { getWcContext().getDb().gatherExternalDefinitions(localAbsPath, externalsStore); handleExternals(externalsStore.getNewExternals(), externalsStore.getDepths(), anchorUrl, localAbsPath, switchRootUrl, depth, true);
repository.update(url, revNumber, target, depth, reporter, SVNCancellableEditor.newInstance(filterEditor, this, getDebugLog())); long targetRevision = editor.getTargetRevision(); if (targetRevision >= 0 && !isIgnoreExternals() && depth.isRecursive()) { url = target == null ? url : url.removePathTail(); handleExternals(wcAccess, info.getAnchor().getRoot(), info.getOldExternals(), info.getNewExternals(), info.getDepths(), url, sourceRoot, depth, false, true);
if ((depth.isRecursive() || croppingTarget) && !getOperation().isIgnoreExternals()) { getWcContext().getDb().gatherExternalDefinitions(localAbspath, externalsStore); handleExternals(externalsStore.getNewExternals(), externalsStore.getDepths(), anchorUrl, localAbspath, reposRoot, depth, false);
if (targetRevision >= 0 && !isIgnoreExternals() && depth.isRecursive()) { url = target == null ? url : url.removePathTail(); handleExternals(wcAccess, info.getAnchor().getRoot(), info.getOldExternals(), info.getNewExternals(),
if (targetRevision >= 0 && !isIgnoreExternals() && depth.isRecursive()) { url = target == null ? url : url.removePathTail(); handleExternals(wcAccess, info.getAnchor().getRoot(), info.getOldExternals(), info.getNewExternals(),
if (depth.isRecursive() && getOperation().isReportExternals()) { Map<File, File> externals = context.getDb().getExternalsDefinedBelow(getFirstTarget()); doExternalStatus(externals);