public SVNCommitInfo closeEdit() throws SVNException { if (!myIsRootOpen) { super.closeEdit(); } return new SVNCommitInfo(getTargetRevision(), null, null); }
public SVNCommitInfo closeEdit() throws SVNException { if (myIsRootOpen) { cleanup(); } else { super.closeEdit(); } return new SVNCommitInfo(myTargetRevision, null, null); }
public SVNCommitInfo closeEdit() throws SVNException { if (myIsRootOpen) { cleanup(); } else { super.closeEdit(); } return new SVNCommitInfo(getTargetRevision(), null, null); }
public SVNCommitInfo closeEdit() throws SVNException { if (myIsRootOpen) { cleanup(); } else { super.closeEdit(); } return new SVNCommitInfo(getTargetRevision(), null, null); }
public SVNCommitInfo closeEdit() throws SVNException { if (myIsRootOpen) { cleanup(); } else { super.closeEdit(); } return new SVNCommitInfo(getTargetRevision(), null, null); }
myCommitInfo = new SVNCommitInfo(myRevision, myAuthor, myCommitDate, myPostCommitError); } else { String reposPath = SVNEncodingUtil.uriEncode(myRepositoryPath);
myCommitInfo = new SVNCommitInfo(myRevision, myAuthor, myCommitDate, myPostCommitError); } else { String reposPath = SVNEncodingUtil.uriEncode(myRepositoryPath);
myCommitInfo = new SVNCommitInfo(myRevision, myAuthor, myCommitDate, myPostCommitError); } else { String reposPath = SVNEncodingUtil.uriEncode(myRepositoryPath);
myCommitInfo = new SVNCommitInfo(myRevision, myAuthor, myCommitDate, myPostCommitError); } else { String reposPath = SVNEncodingUtil.uriEncode(myRepositoryPath);
if (info.getNewRevision() < 0) { info = new SVNCommitInfo(Long.parseLong(getFileVersion("")), null, null, null);
public SVNCommitInfo closeEdit() throws SVNException { if (myTxn == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "No valid transaction supplied to closeEdit()"); SVNErrorManager.error(err); } long committedRev = -1; SVNErrorMessage errorMessage = null; committedRev = finalizeCommit(); try { FSHooks.runPostCommitHook(myFSFS.getRepositoryRoot(), committedRev); } catch (SVNException svne) { errorMessage = SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, svne.getErrorMessage().getFullMessage(), SVNErrorMessage.TYPE_WARNING); } Map revProps = myFSFS.getRevisionProperties(committedRev); String dateProp = (String) revProps.get(SVNRevisionProperty.DATE); String authorProp = (String) revProps.get(SVNRevisionProperty.AUTHOR); Date datestamp = dateProp != null ? SVNTimeUtil.parseDateString(dateProp) : null; SVNCommitInfo info = new SVNCommitInfo(committedRev, authorProp, datestamp, errorMessage); releaseLocks(); myRepository.closeRepository(); return info; }
err = SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, error[0].toString(), SVNErrorMessage.TYPE_WARNING); return new SVNCommitInfo(revision, (String) items[2], date, err); } catch (SVNException exception) { e = exception;
public SVNCommitInfo closeEdit() throws SVNException { SVNException e = null; try { myConnection.write("(w())", new Object[]{"close-edit"}); myConnection.read("", null, true); myRepository.authenticate(); List items = myConnection.readTuple("r(?s)(?s)?(?s)", true); long revision = SVNReader.getLong(items, 0); Date date = SVNReader.getDate(items, 1); String author = SVNReader.getString(items, 2); String errorMessage = SVNReader.getString(items, 3); SVNErrorMessage err = errorMessage == null || errorMessage.length() == 0 ? null : SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, errorMessage, SVNErrorMessage.TYPE_WARNING); return new SVNCommitInfo(revision, author, date, err); } catch (SVNException exception) { e = exception; try { myConnection.write("(w())", new Object[]{"abort-edit"}); } catch (SVNException e1) { } throw exception; } finally { myCloseCallback.run(e); myCloseCallback = null; } }
public SVNCommitInfo closeEdit() throws SVNException { SVNException e = null; try { myConnection.write("(w())", new Object[]{"close-edit"}); myConnection.read("", null, true); myRepository.authenticate(); List items = myConnection.readTuple("r(?s)(?s)?(?s)", true); long revision = SVNReader.getLong(items, 0); Date date = SVNReader.getDate(items, 1); String author = SVNReader.getString(items, 2); String errorMessage = SVNReader.getString(items, 3); SVNErrorMessage err = errorMessage == null || errorMessage.length() == 0 ? null : SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, errorMessage, SVNErrorMessage.TYPE_WARNING); return new SVNCommitInfo(revision, author, date, err); } catch (SVNException exception) { e = exception; try { myConnection.write("(w())", new Object[]{"abort-edit"}); } catch (SVNException e1) { } throw exception; } finally { myCloseCallback.run(e); myCloseCallback = null; } }
public SVNCommitInfo closeEdit() throws SVNException { SVNException e = null; try { myConnection.write("(w())", new Object[]{"close-edit"}); myConnection.read("", null, true); myRepository.authenticate(); List items = myConnection.readTuple("r(?s)(?s)?(?s)", true); long revision = SVNReader.getLong(items, 0); Date date = SVNReader.getDate(items, 1); String author = SVNReader.getString(items, 2); String errorMessage = SVNReader.getString(items, 3); SVNErrorMessage err = errorMessage == null || errorMessage.length() == 0 ? null : SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, errorMessage, SVNErrorMessage.TYPE_WARNING); return new SVNCommitInfo(revision, author, date, err); } catch (SVNException exception) { e = exception; try { myConnection.write("(w())", new Object[]{"abort-edit"}); } catch (SVNException e1) { } throw exception; } finally { myCloseCallback.run(e); myCloseCallback = null; } }
String author = (String) revisionProps.get(SVNRevisionProperty.AUTHOR); Date date = SVNTimeUtil.parseDate((String) revisionProps.get(SVNRevisionProperty.DATE)); commitInfo = new SVNCommitInfo(i, author, date); } catch (SVNException e) {
public SVNCommitInfo closeEdit() throws SVNException { try { if (myTxn == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "No valid transaction supplied to closeEdit()"); SVNErrorManager.error(err, SVNLogType.FSFS); } long committedRev = -1; if (myDeltaConsumer != null) { myDeltaConsumer.close(); } SVNErrorMessage[] errorMessage = new SVNErrorMessage[1]; committedRev = myCommitter.commitTxn(true, true, errorMessage, null); SVNProperties revProps = myFSFS.getRevisionProperties(committedRev); String dateProp = revProps.getStringValue(SVNRevisionProperty.DATE); Date datestamp = dateProp != null ? SVNDate.parseDateString(dateProp) : null; SVNErrorMessage err = errorMessage[0]; if (err != null && err.getErrorCode() == SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED) { String message = err.getChildErrorMessage() != null ? err.getChildErrorMessage().getFullMessage() : err.getFullMessage(); err = SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, message, SVNErrorMessage.TYPE_WARNING); } SVNCommitInfo info = new SVNCommitInfo(committedRev, getAuthor(), datestamp, err); releaseLocks(); return info; } finally { myRepository.closeRepository(); } }
SVNErrorMessage.TYPE_WARNING); SVNCommitInfo info = new SVNCommitInfo(committedRev, getAuthor(), datestamp, err); releaseLocks(); return info;
SVNErrorMessage.TYPE_WARNING); SVNCommitInfo info = new SVNCommitInfo(committedRev, getAuthor(), datestamp, err); releaseLocks(); return info;
String author = revisionProps.getStringValue(SVNRevisionProperty.AUTHOR); Date date = SVNDate.parseDate(revisionProps.getStringValue(SVNRevisionProperty.DATE)); commitInfo = new SVNCommitInfo(i, author, date); } catch (SVNException e) {