private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }
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 List read(String template, List items, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.parse(getInputStream(), template, items); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
public List readTuple(String template, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.readTuple(getInputStream(), template); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
public SVNItem readItem(boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.readItem(getInputStream()); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
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()}); }
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 List read(String template, List items, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.parse(getInputStream(), template, items); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
public List readTuple(String template, boolean readMalformedData) throws SVNException { try { checkConnection(); return SVNReader.readTuple(getInputStream(), template); } catch (SVNException e) { handleIOError(e, readMalformedData); return null; } finally { myRepository.getDebugLog().flushStream(myLoggingInputStream); } }
private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }
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); }
private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }
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); }
private void checkConnection() throws SVNException { if (!myIsReopening && !myConnector.isConnected(myRepository)) { myIsReopening = true; try { close(); open(myRepository); } finally { myIsReopening = false; } } }