public static SVNCommitInfo mkdir( SVNClientManager clientManager, SVNURL[] urls, String commitMessage ) throws SVNException { SVNCommitInfo commitInfo = clientManager.getCommitClient().doMkDir( urls, commitMessage ); return commitInfo; }
protected SVNCommitClient getSVNCommitClient() { return getClientManager().getCommitClient(); }
protected SVNCommitClient getSVNCommitClient(){ return getClientManager().getCommitClient(); }
public SVNCommitClient getCommitClient() { return wrapUp(core.getCommitClient()); }
protected SVNCommitClient getSVNCommitClient() { return getClientManager().getCommitClient(); }
protected SVNCommitClient getSVNCommitClient() { return getClientManager().getCommitClient(); }
public void commitToSvn(SVNClientManager clientManager) throws SVNException { SVNCommitClient commitClient = clientManager.getCommitClient(); File fileToCheckin = new File("LocalDir/SampleFileFolder/SampleFile1"); boolean recursive = true; SVNCommitInfo importInfo = commitClient .doImport( fileToCheckin , SVNURL.parseURIDecoded("<path at which we want to check-in the file>"), "testing svn kit integration", recursive); System.out.println(importInfo.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(); }
/** @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(); }
throws VCSException { try { SVNCommitClient commitClient = getSVNManager().getCommitClient();
@Override public SvnNode mkdir() throws MkdirException { SVNCommitClient client; try { client = root.getClientMananger().getCommitClient(); client.doMkDir(new SVNURL[] { getSvnurl() }, root.getComment()); return this; } catch (SVNException e) { throw new MkdirException(this, e); } }
@Override public Node mkdir() throws MkdirException { SVNCommitClient client; try { client = root.getClientMananger().getCommitClient(); client.doMkDir(new SVNURL[] { getSvnurl() }, root.getComment()); return this; } catch (SVNException e) { throw new MkdirException(this, e); } }
/** * Method description * * * @param message * * @throws RepositoryClientException */ @Override public void commit(String message) throws RepositoryClientException { checkout(); SVNCommitClient cc = client.getCommitClient(); try { SVNCommitInfo info = cc.doCommit(pendingFiles.toArray(new File[0]), true, message, null, null, true, true, SVNDepth.INFINITY); SVNErrorMessage msg = info.getErrorMessage(); if (msg != null) { throw new RepositoryClientException(msg.getFullMessage()); } pendingFiles.clear(); } catch (SVNException ex) { throw new RepositoryClientException(ex); } }
public static void main(String[] args) { ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager("admin", "john"); SVNClientManager manager = SVNClientManager.newInstance(); manager.setAuthenticationManager(authManager); SVNCommitClient commitClient = SVNClientManager.newInstance().getCommitClient(); try { SVNCommitInfo info = commitClient.doMkDir(new SVNURL[] { SVNURL.parseURIEncoded("http://192.168.3.127/repository/koux/branches") }, "commitMessage", null, true); long newRevision = info.getNewRevision(); System.out.println(newRevision); } catch (SVNException e) { e.printStackTrace(); } }
public static void main(String[] args) { ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager("admin", "john"); SVNClientManager manager = SVNClientManager.newInstance(); manager.setAuthenticationManager(authManager); SVNCommitClient commitClient = SVNClientManager.newInstance().getCommitClient(); try { SVNCommitInfo info = commitClient.doMkDir(new SVNURL[] { SVNURL.parseURIEncoded("http://192.168.3.127/repository/koux/trunk") }, "commitMessage", null, true); long newRevision = info.getNewRevision(); System.out.println(newRevision); } catch (SVNException e) { e.printStackTrace(); } }
SVNCommitInfo info = ourClientManager.getCommitClient().doCommit(forCommit, false, comment, null, null, false, false, SVNDepth.INFINITY); Log.logDebug(LOGGER, "SVN committed into new revision {0}", info.getNewRevision());
public boolean svnMkDirs(SVNURL[] urls) { ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager("admin", "john"); SVNClientManager manager = SVNClientManager.newInstance(); manager.setAuthenticationManager(authManager); SVNCommitClient commitClient = SVNClientManager.newInstance().getCommitClient(); try { SVNCommitInfo info = commitClient.doMkDir(urls, "commitMessage", null, true); long newRevision = info.getNewRevision(); if (log.isDebugEnabled()) { if (newRevision >= 0) log.debug("commit successful: new revision = " + newRevision); else log.debug("no commits performed (commit operation returned new revision < 0)"); } System.out.println(newRevision); } catch (SVNException e) { log.error(e); return false; } return true; }
"Invalid URL ''{0}''", url.getTarget()), SVNLogType.CLIENT); SVNCommitClient client = getSVNEnvironment().getClientManager().getCommitClient(); if (!getSVNEnvironment().isQuiet()) { client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
"Invalid URL ''{0}''", url.getTarget()), SVNLogType.CLIENT); SVNCommitClient client = getSVNEnvironment().getClientManager().getCommitClient(); if (!getSVNEnvironment().isQuiet()) { client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
SVNCommitClient client = getSVNEnvironment().getClientManager().getCommitClient(); if (!getSVNEnvironment().isQuiet()) { client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));