protected void displayHeaderFields(OutputStream os, String label1, String label2) throws IOException { os.write("--- ".getBytes(getEncoding())); String originalLabel = null; String newLabel = null; try { originalLabel = generateLabel(myOriginalRoot, myOriginalPath); newLabel = generateLabel(myNewRoot, myNewPath); } catch (SVNException svne) { throw new IOException(svne.getLocalizedMessage()); } os.write(originalLabel.getBytes(getEncoding())); os.write(getEOL()); os.write("+++ ".getBytes(getEncoding())); os.write(newLabel.getBytes(getEncoding())); os.write(getEOL()); }
protected void displayHeaderFields(OutputStream os, String label1, String label2) throws IOException { os.write("--- ".getBytes(getEncoding())); String originalLabel = null; String newLabel = null; try { originalLabel = generateLabel(myOriginalRoot, myOriginalPath); newLabel = generateLabel(myNewRoot, myNewPath); } catch (SVNException svne) { throw new IOException(svne.getLocalizedMessage()); } os.write(originalLabel.getBytes(getEncoding())); os.write(getEOL()); os.write("+++ ".getBytes(getEncoding())); os.write(newLabel.getBytes(getEncoding())); os.write(getEOL()); }
protected void displayHeaderFields(OutputStream os, String label1, String label2) throws IOException { os.write("--- ".getBytes(getEncoding())); String originalLabel = null; String newLabel = null; try { originalLabel = generateLabel(myOriginalRoot, myOriginalPath); newLabel = generateLabel(myNewRoot, myNewPath); } catch (SVNException svne) { throw new IOException(svne.getLocalizedMessage()); } os.write(originalLabel.getBytes(getEncoding())); os.write(getEOL()); os.write("+++ ".getBytes(getEncoding())); os.write(newLabel.getBytes(getEncoding())); os.write(getEOL()); }
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()); } }