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; } }
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 void abortEdit() throws SVNException { if (myIsAborted || myCloseCallback == null) { return; } myIsAborted = true; SVNException error = null; try { myConnection.write("(w())", new Object[]{"abort-edit"}); myConnection.read("", null, true); } catch (SVNException e) { error = e; throw e; } finally { myCloseCallback.run(error); myCloseCallback = null; } }
public void abortEdit() throws SVNException { if (myIsAborted || myCloseCallback == null) { return; } myIsAborted = true; SVNException error = null; try { myConnection.write("(w())", new Object[]{"abort-edit"}); myConnection.read("", null, true); } catch (SVNException e) { error = e; throw e; } finally { myCloseCallback.run(error); myCloseCallback = null; } }
public void abortEdit() throws SVNException { if (myIsAborted || myCloseCallback == null) { return; } myIsAborted = true; SVNException error = null; try { myConnection.write("(w())", new Object[] { "abort-edit" }); myConnection.read("[()]", null, true); } catch (SVNException e) { error = e; throw e; } finally { myCloseCallback.run(error); myCloseCallback = null; } }
public void abortEdit() throws SVNException { if (myIsAborted || myCloseCallback == null) { return; } myIsAborted = true; SVNException error = null; try { myConnection.write("(w())", new Object[]{"abort-edit"}); myConnection.read("", null, true); } catch (SVNException e) { error = e; throw e; } finally { myCloseCallback.run(error); myCloseCallback = null; } }