/** * Committs removing specified URL-paths from the repository. * This call is equivalent to <code>doDelete(urls, commitMessage, null)</code>. * * @param urls an array containing URL-strings that represent * repository locations to be removed * @param commitMessage a string to be a commit log message * @return information on a new revision as the result * of the commit * @throws SVNException if one of the following is true: * <ul> * <li>a URL does not exist * <li>probably some of URLs refer to different * repositories * </ul> * @see #doDelete(SVNURL[], String, SVNProperties) */ public SVNCommitInfo doDelete(SVNURL[] urls, String commitMessage) throws SVNException { return doDelete(urls, commitMessage, null); }
/** * Committs removing specified URL-paths from the repository. * This call is equivalent to <code>doDelete(urls, commitMessage, null)</code>. * * @param urls an array containing URL-strings that represent * repository locations to be removed * @param commitMessage a string to be a commit log message * @return information on a new revision as the result * of the commit * @throws SVNException if one of the following is true: * <ul> * <li>a URL does not exist * <li>probably some of URLs refer to different * repositories * </ul> * @see #doDelete(SVNURL[], String, SVNProperties) */ public SVNCommitInfo doDelete(SVNURL[] urls, String commitMessage) throws SVNException { return doDelete(urls, commitMessage, null); }
/** @return revision */ public long delete(String comment) throws SVNException { SVNCommitClient client; SVNCommitInfo info; client = root.getClientMananger().getCommitClient(); info = client.doDelete(new SVNURL[] { getSvnurl() }, comment); return info.getNewRevision(); }
/** @return revision */ public long delete(String comment) throws SVNException { SVNCommitClient client; SVNCommitInfo info; client = root.getClientMananger().getCommitClient(); info = client.doDelete(new SVNURL[] { getSvnurl() }, comment); return info.getNewRevision(); }
client.doDelete(urls, message); } catch (SVNException e) { throwException(e);
public void safeRevertTag(String tagUrl, String commitMessageSuffix) { try { log("Reverting subversion tag: " + tagUrl); SVNURL svnUrl = SVNURL.parseURIEncoded(tagUrl); SVNCommitClient commitClient = new SVNCommitClient(createAuthenticationManager(), null); SVNCommitInfo commitInfo = commitClient.doDelete(new SVNURL[]{svnUrl}, COMMENT_PREFIX + commitMessageSuffix); SVNErrorMessage errorMessage = commitInfo.getErrorMessage(); if (errorMessage != null) { log("Failed to revert '" + tagUrl + "': " + errorMessage.getFullMessage()); } } catch (SVNException e) { log("Failed to revert '" + tagUrl + "': " + e.getLocalizedMessage()); } }
SVNProperties revisionProperties = revprops == null ? null : SVNProperties.wrap(revprops); client.setCommitHandler(createCommitMessageHandler(true)); client.doDelete(urls, message, revisionProperties); } catch (SVNException e) { throwException(e);
urls[0] = SVNURL.parseURIEncoded(dto.getDirectoryToRemove()); commitClient.doDelete(urls, "From scmwebeditor -- remove the directory : " + dto.getDirectoryToRemove()); } catch (SVNAuthenticationException authexep) {
SVNURL scmPathTab[] = new SVNURL[1]; scmPathTab[0] = SVNURL.parseURIEncoded(dto.getScmPath()); commitClient.doDelete(scmPathTab, "From scmwebeditor -- remove the file : " + dto.getScmPath()); } catch (SVNAuthenticationException authexep) {
SVNProperties revisionProperties = revprops == null ? null : SVNProperties.wrap(revprops); client.setCommitHandler(createCommitMessageHandler(true)); client.doDelete(urls, message, revisionProperties); } catch (SVNException e) { throwException(e);
SVNProperties revisionProperties = revprops == null ? null : SVNProperties.wrap(revprops); client.setCommitHandler(createCommitMessageHandler(true)); client.doDelete(urls, message, revisionProperties); } catch (SVNException e) { throwException(e);
SVNCommitInfo info = client.doDelete(urls, getSVNEnvironment().getMessage(), getSVNEnvironment().getRevisionProperties()); if (!getSVNEnvironment().isQuiet()) { getSVNEnvironment().printCommitInfo(info);
SVNCommitInfo info = client.doDelete(urls, getSVNEnvironment().getMessage(), getSVNEnvironment().getRevisionProperties()); if (!getSVNEnvironment().isQuiet()) { getSVNEnvironment().printCommitInfo(info);