public SVNCommitInfo closeEdit() throws SVNException { myCommitInfo = myCommitEditor.closeEdit(); return myCommitInfo; }
@Override public void handleEndRevision(long revision, SVNProperties revisionProperties, ISVNEditor editor) throws SVNException { editor.closeEdit(); } });
/** * Commits the transaction. * @return commit info * @throws SVNException */ public SVNCommitInfo closeEdit() throws SVNException { myCommitInfo = myCommitEditor.closeEdit(); if (mySourceRepository != null) { mySourceRepository.closeSession(); mySourceRepository = null; } return myCommitInfo; }
/** * Commits the transaction. * @return commit info * @throws SVNException */ public SVNCommitInfo closeEdit() throws SVNException { myCommitInfo = myCommitEditor.closeEdit(); if (mySourceRepository != null) { mySourceRepository.closeSession(); mySourceRepository = null; } return myCommitInfo; }
/** * Commits the transaction. * @return commit info * @throws SVNException */ public SVNCommitInfo closeEdit() throws SVNException { myCommitInfo = myCommitEditor.closeEdit(); if (mySourceRepository != null) { mySourceRepository.closeSession(); mySourceRepository = null; } return myCommitInfo; }
public SVNCommitInfo closeEdit() throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "close edit"); return myDelegate.closeEdit(); }
public SVNCommitInfo closeEdit() throws SVNException { myCancel.checkCancelled(); myLog.info("close edit"); return myDelegate.closeEdit(); }
public SVNCommitInfo closeEdit() throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "close edit"); return myDelegate.closeEdit(); }
public SVNCommitInfo closeEdit() throws SVNException { myCancel.checkCancelled(); myLog.logFine(SVNLogType.WC, "close edit"); return myDelegate.closeEdit(); }
public static SVNCommitInfo commit(SVNWCContext context, Collection<File> tmpFiles, Map<String, SvnCommitItem> committables, SVNURL repositoryRoot, ISVNEditor commitEditor, Map<File, SvnChecksum> md5Checksums, Map<File, SvnChecksum> sha1Checksums) throws SVNException { SVNCommitter17 committer = new SVNCommitter17(context, committables, repositoryRoot, tmpFiles, md5Checksums, sha1Checksums); SVNCommitUtil.driveCommitEditor(committer, committables.keySet(), commitEditor, -1); committer.sendTextDeltas(commitEditor); return commitEditor.closeEdit(); }
public static SVNCommitInfo commit(Collection tmpFiles, Map commitItems, String repositoryRoot, ISVNEditor commitEditor) throws SVNException { SVNCommitter committer = new SVNCommitter(commitItems, repositoryRoot, tmpFiles); SVNCommitUtil.driveCommitEditor(committer, commitItems.keySet(), commitEditor, -1); committer.sendTextDeltas(commitEditor); return commitEditor.closeEdit(); }
public static SVNCommitInfo commit(Collection tmpFiles, Map commitItems, String repositoryRoot, ISVNEditor commitEditor) throws SVNException { SVNCommitter committer = new SVNCommitter(commitItems, repositoryRoot, tmpFiles); SVNCommitUtil.driveCommitEditor(committer, commitItems.keySet(), commitEditor, -1); committer.sendTextDeltas(commitEditor); return commitEditor.closeEdit(); }
public static SVNCommitInfo commit(Collection tmpFiles, Map commitItems, String repositoryRoot, ISVNEditor commitEditor) throws SVNException { SVNCommitter committer = new SVNCommitter(commitItems, repositoryRoot, tmpFiles); SVNCommitUtil.driveCommitEditor(committer, commitItems.keySet(), commitEditor, -1); committer.sendTextDeltas(commitEditor); return commitEditor.closeEdit(); } }
public static SVNCommitInfo commit(Collection tmpFiles, Map commitItems, SVNURL url, ISVNEditor commitEditor, ISVNEventHandler eventHandler) throws SVNException { String repositoryRoot = url.getPath(); SVNCommitter committer = new SVNCommitter(commitItems, repositoryRoot, tmpFiles); SVNCommitUtil.driveCommitEditor(committer, commitItems.keySet(), commitEditor, -1); committer.sendTextDeltas(commitEditor); SVNEvent event = SVNEventFactory.createSVNEvent(null, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.COMMIT_FINALIZING, SVNEventAction.COMMIT_FINALIZING, null, null); event.setURL(url); if (eventHandler != null) { eventHandler.handleEvent(event, -1); } return commitEditor.closeEdit(); }
SVNRepository repository = SVNRepositoryFactory.create(url); ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(user,password); repository.setAuthenticationManager(authManager); SVNPropertyValue svnPropertyValue = SVNPropertyValue.create("def"); ISVNEditor editor = repository.getCommitEditor("comment", null); editor.openRoot(-1); editor.openDir("dirname", -1); editor.changeDirProperty("myproperty", svnPropertyValue); editor.closeEdit();
SVNRepository repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(svnUrl)); SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator(); ISVNEditor editor = repository.getCommitEditor("This is a log message.", new CommitMediator()); editor.openRoot(-1); editor.addFile("testThisTextCommit1.txt", null, -1); editor.applyTextDelta(svnUrl, null); InputStream is = SVNFileUtil.openFileForReading(file); String chksm = deltaGenerator.sendDelta(svnUrl, is, editor, true); is.close(); editor.textDeltaEnd("testThisTextCommit1.txt"); editor.closeFile("testThisTextCommit1.txt", chksm); editor.closeEdit();
SVNRepository repository = SVNRepositoryFactory.create(url); ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(user,password); repository.setAuthenticationManager(authManager); ISVNEditor editor = repository.getCommitEditor("comment" , null); editor.openRoot(-1); editor.openFile("/file1.txt", -1); editor.changeFileProperty("/file1.txt", "mypropertyname", SVNPropertyValue.create("myvalue")); editor.closeFile("/file1.txt",null); editor.closeEdit();
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }