private DAVConnection getConnection() throws SVNException { if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, myOwner); myConnection.setReportResponseSpooled(myOwner.isSpoolResponse()); myConnection.open(myOwner); } return myConnection; }
private DAVConnection getConnection() throws SVNException { if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, myOwner); myConnection.setReportResponseSpooled(myOwner.isSpoolResponse()); myConnection.open(myOwner); } return myConnection; }
private DAVConnection getConnection() throws SVNException { if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, myOwner); myConnection.setReportResponseSpooled(myOwner.isSpoolResponse()); myConnection.open(myOwner); } return myConnection; }
private void doAnnotate(String path, long startRev, File tmpFile, SVNRepository repos, long endRev, boolean ignoreMimeType, ISVNAnnotateHandler handler, String inputEncoding, boolean includeMergedRevisions) throws SVNException { SVNAnnotationGenerator generator = new SVNAnnotationGenerator(path, tmpFile, startRev, ignoreMimeType, includeMergedRevisions, getDiffOptions(), inputEncoding, handler, this); // always spool HTTP response for non-standard annotation handlers. boolean useSpool = handler != null && !handler.getClass().getName().startsWith("org.tmatesoft.svn."); boolean oldSpool = false; if (useSpool && repos instanceof DAVRepository) { oldSpool = ((DAVRepository) repos).isSpoolResponse(); ((DAVRepository) repos).setSpoolResponse(true); } try { repos.getFileRevisions("", startRev > 0 ? startRev - 1 : startRev, endRev, includeMergedRevisions, generator); if (!generator.isLastRevisionReported()) { generator.reportAnnotations(handler, inputEncoding); } } finally { if (useSpool && repos instanceof DAVRepository) { ((DAVRepository) repos).setSpoolResponse(oldSpool); } generator.dispose(); SVNFileUtil.deleteAll(tmpFile, !"text-base".equals(tmpFile.getName()), null); } }
private void doAnnotate(String path, long startRev, File tmpFile, SVNRepository repos, long endRev, boolean ignoreMimeType, ISVNAnnotateHandler handler, String inputEncoding, boolean includeMergedRevisions) throws SVNException { SVNAnnotationGenerator generator = new SVNAnnotationGenerator(path, tmpFile, startRev, ignoreMimeType, includeMergedRevisions, getDiffOptions(), inputEncoding, handler, this); generator.setEndRevision(endRev); boolean useSpool = handler != null && !handler.getClass().getName().startsWith("org.tmatesoft.svn."); boolean oldSpool = false; if (useSpool && repos instanceof DAVRepository) { oldSpool = ((DAVRepository) repos).isSpoolResponse(); ((DAVRepository) repos).setSpoolResponse(true); } try { repos.getFileRevisions("", startRev > 0 ? startRev - 1 : startRev, endRev, includeMergedRevisions, generator); if (!generator.isLastRevisionReported()) { generator.reportAnnotations(handler, inputEncoding); } } finally { if (useSpool && repos instanceof DAVRepository) { ((DAVRepository) repos).setSpoolResponse(oldSpool); } generator.dispose(); SVNFileUtil.deleteAll(tmpFile, !"text-base".equals(tmpFile.getName()), null); } }
private void doAnnotate(String path, long startRev, File tmpFile, SVNRepository repos, long endRev, boolean ignoreMimeType, ISVNAnnotateHandler handler, String inputEncoding, boolean includeMergedRevisions) throws SVNException { SVNAnnotationGenerator generator = new SVNAnnotationGenerator(path, tmpFile, startRev, ignoreMimeType, includeMergedRevisions, getDiffOptions(), inputEncoding, handler, this); // always spool HTTP response for non-standard annotation handlers. boolean useSpool = handler != null && !handler.getClass().getName().startsWith("org.tmatesoft.svn."); boolean oldSpool = false; if (useSpool && repos instanceof DAVRepository) { oldSpool = ((DAVRepository) repos).isSpoolResponse(); ((DAVRepository) repos).setSpoolResponse(true); } try { repos.getFileRevisions("", startRev > 0 ? startRev - 1 : startRev, endRev, includeMergedRevisions, generator); if (!generator.isLastRevisionReported()) { generator.reportAnnotations(handler, inputEncoding); } } finally { if (useSpool && repos instanceof DAVRepository) { ((DAVRepository) repos).setSpoolResponse(oldSpool); } generator.dispose(); SVNFileUtil.deleteAll(tmpFile, !"text-base".equals(tmpFile.getName()), null); } }
protected void openConnection() throws SVNException { lock(); fireConnectionOpened(); if (myConnection == null) { myConnection = createDAVConnection(myConnectionFactory, this); myConnection.setReportResponseSpooled(isSpoolResponse()); myConnection.open(this); } }
protected void openConnection() throws SVNException { lock(); fireConnectionOpened(); if (myConnection == null) { myConnection = createDAVConnection(myConnectionFactory, this); myConnection.setReportResponseSpooled(isSpoolResponse()); myConnection.open(this); } }
correctedUrl[0] = null; myConnection = createDAVConnection(myConnectionFactory, this); myConnection.setReportResponseSpooled(isSpoolResponse()); myConnection.open(this, correctedUrl);