SVNDebugLog.logInfo("session closed (1)"); } else if (!(url.toString().startsWith(myRepositoryRoot.toString() + "/") || myRepositoryRoot.equals(url))) {
} else if (url.toString().startsWith(myRepositoryRoot.toString() + "/") || myRepositoryRoot.equals(url)) {  } else if (url.getProtocol().equals(myRepositoryRoot.getProtocol()) && url.getHost().equals(myRepositoryRoot.getHost()) && url.getPort() == myRepositoryRoot.getPort()) { myRepositoryRoot = null; myRepositoryUUID = null; myPegRevision = -1; } else {
    public void setLocation(SVNURL url, boolean forceReconnect) throws SVNException {        lock();        try {            if (forceReconnect || myRepositoryRoot == null) {                closeSession();                myRepositoryRoot = null;                myRepositoryUUID = null;                myPegRevision = -1;                SVNDebugLog.logInfo("session closed (1)");            } else if (!(url.toString().startsWith(myRepositoryRoot.toString() + "/") || myRepositoryRoot.equals(url))) {                closeSession();                myRepositoryRoot = null;                myRepositoryUUID = null;                myPegRevision = -1;                SVNDebugLog.logInfo("session closed (2)");            }            myLocation = url;        } finally {            unlock();        }    }