public boolean hasCapability(Capability capability) throws ClientException { try { return svnRepository.hasCapability(SVNClientImpl.getCapability(capability)); } catch (SVNException e) { throw ClientException.fromException(e); } }
try { repository = getRepository(context,repoURL, credentials, Collections.<String, Credentials>emptyMap(), null); if (repository.hasCapability(SVNCapability.LOG_REVPROPS)) return FormValidation.ok(); } finally {
/** * Checks that this object is connected to a mergeinfo capable repository. * * <p/> * If the repository that this object is used to access to does not support merge-tracking, * an {@link SVNException} is thrown with the error code {@link SVNErrorCode#UNSUPPORTED_FEATURE}. * * <p/> * <code>pathOrURL</code> is used only in an error message. If <code>pathOrURL</code> is * <span class="javakeyword">null</span>, it defaults to the {@link #getLocation() location} of this * object. * * @param pathOrURL path or URl string for an error message * @throws SVNException exception with {@link SVNErrorCode#UNSUPPORTED_FEATURE} error code - if * the repository does not support merge-tracking * @since 1.2.0 */ public void assertServerIsMergeInfoCapable(String pathOrURL) throws SVNException { boolean isMergeInfoCapable = hasCapability(SVNCapability.MERGE_INFO); if (!isMergeInfoCapable) { if (pathOrURL == null) { SVNURL sessionURL = getLocation(); pathOrURL = sessionURL.toString(); } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "Retrieval of mergeinfo unsupported by ''{0}''", pathOrURL); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
/** * Checks that this object is connected to a mergeinfo capable repository. * * <p/> * If the repository that this object is used to access to does not support merge-tracking, * an {@link SVNException} is thrown with the error code {@link SVNErrorCode#UNSUPPORTED_FEATURE}. * * <p/> * <code>pathOrURL</code> is used only in an error message. If <code>pathOrURL</code> is * <span class="javakeyword">null</span>, it defaults to the {@link #getLocation() location} of this * object. * * @param pathOrURL path or URl string for an error message * @throws SVNException exception with {@link SVNErrorCode#UNSUPPORTED_FEATURE} error code - if * the repository does not support merge-tracking * @since 1.2.0 */ public void assertServerIsMergeInfoCapable(String pathOrURL) throws SVNException { boolean isMergeInfoCapable = hasCapability(SVNCapability.MERGE_INFO); if (!isMergeInfoCapable) { if (pathOrURL == null) { SVNURL sessionURL = getLocation(); pathOrURL = sessionURL.toString(); } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "Retrieval of mergeinfo unsupported by ''{0}''", pathOrURL); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
/** * Checks that this object is connected to a mergeinfo capable repository. * * <p/> * If the repository that this object is used to access to does not support merge-tracking, * an {@link SVNException} is thrown with the error code {@link SVNErrorCode#UNSUPPORTED_FEATURE}. * * <p/> * <code>pathOrURL</code> is used only in an error message. If <code>pathOrURL</code> is * <span class="javakeyword">null</span>, it defaults to the {@link #getLocation() location} of this * object. * * @param pathOrURL path or URl string for an error message * @throws SVNException exception with {@link SVNErrorCode#UNSUPPORTED_FEATURE} error code - if * the repository does not support merge-tracking * @since 1.2.0 */ public void assertServerIsMergeInfoCapable(String pathOrURL) throws SVNException { boolean isMergeInfoCapable = hasCapability(SVNCapability.MERGE_INFO); if (!isMergeInfoCapable) { if (pathOrURL == null) { SVNURL sessionURL = getLocation(); pathOrURL = sessionURL.toString(); } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "Retrieval of mergeinfo unsupported by ''{0}''", pathOrURL); SVNErrorManager.error(err, SVNLogType.NETWORK); } }
try { repository = getRepository(context, repoURL); if (repository.hasCapability(SVNCapability.LOG_REVPROPS)) { return FormValidation.ok();
try { repository = getRepository(context, repoURL); if (repository.hasCapability(SVNCapability.LOG_REVPROPS)) { return FormValidation.ok();
boolean hasCommitRevPropCapability = toRepos.hasCapability(SVNCapability.COMMIT_REVPROPS); checkCancelled();
myIsMergeInfoCapable = myRepository1.hasCapability(SVNCapability.MERGE_INFO); checkedMergeInfoCapability = true;
revision = getLatestRevision(); if (hasCapability(SVNCapability.INHERITED_PROPS)) { getInheritedPropertiesImpl(path, revision, propertyName, handler); return;
boolean serverSupportsDepth = repository.hasCapability(SVNCapability.DEPTH); SVNReporter reporter = new SVNReporter(info, info.getAnchor().getFile(info.getTargetName()), false, !serverSupportsDepth, depth, false, false, true, getDebugLog());
AbstractDiffCallback callback = new SVNDiffCallback(info.getAnchor(), getDiffGenerator(), reverse ? -1 : revNumber, reverse ? revNumber : -1, result); SVNDiffEditor editor = new SVNDiffEditor(wcAccess, info, callback, useAncestry, reverse, revision2 == SVNRevision.BASE || revision2 == SVNRevision.COMMITTED, depth, changeLists); boolean serverSupportsDepth = repository.hasCapability(SVNCapability.DEPTH); SVNReporter reporter = new SVNReporter(info, info.getAnchor().getFile(info.getTargetName()), false, !serverSupportsDepth, depth, false, false, true, getDebugLog()); long pegRevisionNumber = getRevisionNumber(revision2, repository, path2);
boolean serverSupportsDepth = repository.hasCapability(SVNCapability.DEPTH); SVNReporter reporter = new SVNReporter(info, info.getAnchor().getFile(info.getTargetName()), false, !serverSupportsDepth, depth, false, false, true, getDebugLog());
SVNDiffEditor editor = new SVNDiffEditor(wcAccess, info, callback, useAncestry, reverse, revision2 == SVNRevision.BASE || revision2 == SVNRevision.COMMITTED, depth, changeLists); ISVNEditor filterEditor = SVNAmbientDepthFilterEditor.wrap(editor, info, false); boolean serverSupportsDepth = repository.hasCapability(SVNCapability.DEPTH); SVNReporter reporter = new SVNReporter(info, info.getAnchor().getFile(info.getTargetName()), false, !serverSupportsDepth, depth, false, false, true, getDebugLog()); long pegRevisionNumber = getRevisionNumber(revision2, repository, path2);
boolean serverSupportsDepth = repos.hasCapability(SVNCapability.DEPTH); final SVNReporter reporter = new SVNReporter(adminInfo, path, true, !serverSupportsDepth, depth, isUpdateLocksOnDemand(), false, !depthIsSticky, getDebugLog()); String target = "".equals(adminInfo.getTargetName()) ? null : adminInfo.getTargetName();
boolean serverSupportsDepth = repos.hasCapability(SVNCapability.DEPTH); final SVNReporter reporter = new SVNReporter(adminInfo, path, true, !serverSupportsDepth, depth, isUpdateLocksOnDemand(), false, !depthIsSticky, getDebugLog());
boolean serverSupportsDepth = repository.hasCapability(SVNCapability.DEPTH); SVNReporter reporter = new SVNReporter(info, info.getAnchor().getFile(info.getTargetName()), false, !serverSupportsDepth, depth, false, false, true, getDebugLog());
boolean serverSupportsDepth = repository.hasCapability(SVNCapability.DEPTH); SVNReporter reporter = new SVNReporter(info, info.getAnchor().getFile(info.getTargetName()), false, !serverSupportsDepth, depth, false, false, true, getDebugLog());
boolean serverSupportsDepth = repository2.hasCapability(SVNCapability.DEPTH);
boolean serverSupportsDepth = repository2.hasCapability(SVNCapability.DEPTH);