public void textDeltaEnd(String path) throws SVNException { String fileToken = (String) myFilesToTokens.get(path); myDiffWindowCount = 0; myConnection.write("(w(s))", new Object[]{"textdelta-end", fileToken}); }
public void closeFile(String path, String textChecksum) throws SVNException { String fileToken = (String)myFilesToTokens.remove(path); myDiffWindowCount = 0; myConnection.write("(w(s(s)))", new Object[] { "close-file", fileToken, textChecksum }); }
public void applyTextDelta(String path, String baseChecksum) throws SVNException { String fileToken = (String) myFilesToTokens.get(path); myDiffWindowCount = 0; myConnection.write("(w(s(s)))", new Object[]{"apply-textdelta", fileToken, baseChecksum}); }
public void textDeltaEnd(String path) throws SVNException { String fileToken = (String) myFilesToTokens.get(path); myDiffWindowCount = 0; myConnection.write("(w(s))", new Object[]{"textdelta-end", fileToken}); }
public void closeFile(String path, String textChecksum) throws SVNException { String fileToken = (String) myFilesToTokens.remove(path); myDiffWindowCount = 0; myConnection.write("(w(s(s)))", new Object[]{"close-file", fileToken, textChecksum}); }
public void closeDir() throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.pop(); myConnection.write("(w(s))", new Object[]{"close-dir", dirBaton.getToken()}); }
public void closeDir() throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.pop(); myConnection.write("(w(s))", new Object[]{"close-dir", dirBaton.getToken()}); }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { String fileToken = (String) myFilesToTokens.get(path); byte[] bytes = SVNPropertyValue.getPropertyAsBytes(value); myConnection.write("(w(ss(b)))", new Object[]{"change-file-prop", fileToken, name, bytes}); }
public void closeDir() throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.pop(); myConnection.write("(w(s))", new Object[]{"close-dir", dirBaton.getToken()}); }
public void write(byte b[], int off, int len) throws IOException { try { SVNConnection.this.write("(w(s", myPrefix); getOutputStream().write((String.valueOf(len)).getBytes("UTF-8")); getOutputStream().write(':'); getOutputStream().write(b, off, len); getOutputStream().write(' '); SVNConnection.this.write("))", null); } catch (SVNException e) { throw new IOException(e.getMessage()); } }
public void write(byte b[], int off, int len) throws IOException { try { SVNConnection.this.write("(w(s", myPrefix); getOutputStream().write((String.valueOf(len)).getBytes("UTF-8")); getOutputStream().write(':'); getOutputStream().write(b, off, len); getOutputStream().write(' '); SVNConnection.this.write("))", null); } catch (SVNException e) { throw new IOException(e.getMessage()); } }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.peek(); byte[] bytes = SVNPropertyValue.getPropertyAsBytes(value); myConnection.write("(w(ss(b)))", new Object[]{"change-dir-prop", dirBaton.getToken(), name, bytes}); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.peek(); byte[] bytes = SVNPropertyValue.getPropertyAsBytes(value); myConnection.write("(w(ss(b)))", new Object[]{"change-dir-prop", dirBaton.getToken(), name, bytes}); }
public void deleteEntry(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); myConnection.write("(w(s(n)s))", new Object[]{"delete-entry", path, getRevisionObject(revision), parentBaton.getToken()}); }
private void write(String template, Object[] values) throws SVNException { if (myConnection == null) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_CONNECTION_CLOSED), SVNLogType.NETWORK); } myConnection.write(template, values); }
private void write(String template, Object[] values) throws SVNException { if (myConnection == null) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_CONNECTION_CLOSED)); } myConnection.write(template, values); }
private void write(String template, Object[] values) throws SVNException { if (myConnection == null) { SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_SVN_CONNECTION_CLOSED), SVNLogType.NETWORK); } myConnection.write(template, values); }
public void openRoot(long revision) throws SVNException { DirBaton rootBaton = new DirBaton(myNextToken++); myConnection.write("(w((n)s))", new Object[]{"open-root", getRevisionObject(revision), rootBaton.getToken()}); myDirsStack.push(rootBaton); }
public void openDir(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); DirBaton dirBaton = new DirBaton(myNextToken++); myConnection.write("(w(sss(n)))", new Object[]{"open-dir", path, parentBaton.getToken(), dirBaton.getToken(), getRevisionObject(revision)}); myDirsStack.push(dirBaton); }
public void openDir(String path, long revision) throws SVNException { DirBaton parentBaton = (DirBaton) myDirsStack.peek(); DirBaton dirBaton = new DirBaton(myNextToken++); myConnection.write("(w(sss(n)))", new Object[]{"open-dir", path, parentBaton.getToken(), dirBaton.getToken(), getRevisionObject(revision)}); myDirsStack.push(dirBaton); }