public HTTPConnection(SVNRepository repository) throws SVNException { myRepository = repository; myHost = repository.getLocation().setPath("", false); myIsSecured = "https".equalsIgnoreCase(myHost.getProtocol()); myIsKeepAlive = repository.getOptions().keepConnection(repository); }
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException { if (logEntry.getDate() != null) { getOptions().saveCommitMessage(DAVRepository.this, logEntry.getRevision(), logEntry.getMessage()); } handler.handleLogEntry(logEntry); }
while(true) { String label = Long.toString(entry.getRevision()); if (entry.getDate() != null && getOptions().hasCommitMessage(this, entry.getRevision())) { String message = getOptions().getCommitMessage(this, entry.getRevision()); entry.setCommitMessage(message); } else if (entry.getDate() != null) { final SVNDirEntry currentEntry = entry; String commitMessage = DAVUtil.getPropertyValue(myConnection, vcc, label, logProperty); getOptions().saveCommitMessage(DAVRepository.this, currentEntry.getRevision(), commitMessage); currentEntry.setCommitMessage(commitMessage);
if (entry.getRevision() >= 0 && vcc != null) { String label = Long.toString(entry.getRevision()); if (entry.getDate() != null && getOptions().hasCommitMessage(this, entry.getRevision())) { String message = getOptions().getCommitMessage(this, entry.getRevision()); entry.setCommitMessage(message); } else if (entry.getDate() != null && vcc != null) { getOptions().saveCommitMessage(DAVRepository.this, currentEntry.getRevision(), commitMessage); currentEntry.setCommitMessage(commitMessage);
while(true) { String label = Long.toString(entry.getRevision()); if (entry.getDate() != null && getOptions().hasCommitMessage(this, entry.getRevision())) { String message = getOptions().getCommitMessage(this, entry.getRevision()); entry.setCommitMessage(message); } else if (entry.getDate() != null) { getOptions().saveCommitMessage(DAVRepository.this, currentEntry.getRevision(), commitMessage); currentEntry.setCommitMessage(commitMessage);
protected void closeConnection() { if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException { if (logEntry.getDate() != null) { getOptions().saveCommitMessage(DAVRepository.this, logEntry.getRevision(), logEntry.getMessage()); } if (handler != null) { handler.handleLogEntry(logEntry); } } };
while(true) { String label = Long.toString(entry.getRevision()); if (entry.getDate() != null && getOptions().hasCommitMessage(this, entry.getRevision())) { String message = getOptions().getCommitMessage(this, entry.getRevision()); entry.setCommitMessage(message); } else if (entry.getDate() != null) { getOptions().saveCommitMessage(DAVRepository.this, currentEntry.getRevision(), commitMessage); currentEntry.setCommitMessage(commitMessage);
protected void closeConnection() { if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException { if (logEntry.getDate() != null) { getOptions().saveCommitMessage(DAVRepository.this, logEntry.getRevision(), logEntry.getMessage()); } if (handler != null) { handler.handleLogEntry(logEntry); } } };
protected void closeConnection() { if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
public void handleLogEntry(SVNLogEntry logEntry) throws SVNException { if (logEntry.getDate() != null) { getOptions().saveCommitMessage(DAVRepository.this, logEntry.getRevision(), logEntry.getMessage()); } if (handler != null) { handler.handleLogEntry(logEntry); } } };
private void openConnection() throws SVNException { lock(); if (myConnection != null && getOptions().keepConnection(this)) { return; } if (myConnection == null) { myConnection = new DAVConnection(myConnectionFactory, this); } myConnection.open(this); }
public Map getRevisionProperties(long revision, Map properties) throws SVNException { properties = properties == null ? new HashMap() : properties; try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVProperties source = DAVUtil.getBaselineProperties(myConnection, this, path, revision, null); properties = DAVUtil.filterProperties(source, properties); if (revision >= 0) { String commitMessage = (String) properties.get(SVNRevisionProperty.LOG); getOptions().saveCommitMessage(DAVRepository.this, revision, commitMessage); } } finally { closeConnection(); } return properties; }
private void closeConnection() { if (getOptions().keepConnection(this)) { unlock(); return; } if (myConnection != null) { myConnection.close(); myConnection = null; } unlock(); }
public SVNProperties getRevisionProperties(long revision, SVNProperties properties) throws SVNException { properties = properties == null ? new SVNProperties() : properties; try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVProperties source = DAVUtil.getBaselineProperties(connection, this, path, revision, null); properties = DAVUtil.filterProperties(source, properties); if (revision >= 0) { String commitMessage = properties.getStringValue(SVNRevisionProperty.LOG); getOptions().saveCommitMessage(DAVRepository.this, revision, commitMessage); } } finally { closeConnection(); } return properties; }
protected void closeConnection() { DAVConnection connection = getConnection(); if (connection != null && !ourIsKeepCredentials) { connection.clearAuthenticationCache(); } if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
public SVNProperties getRevisionProperties(long revision, SVNProperties properties) throws SVNException { properties = properties == null ? new SVNProperties() : properties; try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVProperties source = DAVUtil.getBaselineProperties(connection, this, path, revision, null); properties = DAVUtil.filterProperties(source, properties); if (revision >= 0) { String commitMessage = properties.getStringValue(SVNRevisionProperty.LOG); getOptions().saveCommitMessage(DAVRepository.this, revision, commitMessage); } } finally { closeConnection(); } return properties; }
protected void closeConnection() { DAVConnection connection = getConnection(); if (connection != null && !ourIsKeepCredentials) { connection.clearAuthenticationCache(); } if (!getOptions().keepConnection(this)) { closeSession(); } unlock(); fireConnectionClosed(); }
public SVNProperties getRevisionProperties(long revision, SVNProperties properties) throws SVNException { properties = properties == null ? new SVNProperties() : properties; try { openConnection(); String path = getLocation().getPath(); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); DAVProperties source = DAVUtil.getBaselineProperties(connection, this, path, revision, null); properties = DAVUtil.filterProperties(source, properties); if (revision >= 0) { String commitMessage = properties.getStringValue(SVNRevisionProperty.LOG); getOptions().saveCommitMessage(DAVRepository.this, revision, commitMessage); } } finally { closeConnection(); } return properties; }