public SVNDiffStatusEditor(File anchor, String target, SVNRepository repos, long revision, ISVNDiffStatusHandler handler) { myRepository = repos; myHandler = handler; myRevision = revision; myRootURL = repos.getLocation(); myAnchor = anchor; myTarget = target; }
public SVNDiffStatusEditor(File anchor, String target, SVNRepository repos, long revision, ISVNDiffStatusHandler handler) { myRepository = repos; myHandler = handler; myRevision = revision; myRootURL = repos.getLocation(); myAnchor = anchor; myTarget = target; }
public SVNStatusReporter17(SVNRepository repository, SVNReporter17 reportBaton, SVNStatusEditor17 editor) { this.repository = repository; this.reportBaton = reportBaton; this.editor = editor; this.repositoryLocation = repository.getLocation(); this.locks = new HashMap<String, SVNLock>(); }
@Override public boolean equals(Object obj) { SvnRoot root; if (obj instanceof SvnRoot) { root = (SvnRoot) obj; return repository.getLocation().equals(root.repository.getLocation()); } return false; }
public SVNStatusReporter(SVNRepository repos, ISVNReporterBaton baton, SVNStatusEditor editor) { myBaton = baton; myRepository = repos; myRepositoryLocation = repos.getLocation(); myEditor = editor; myLocks = new SVNHashMap(); }
public SVNStatusReporter(SVNRepository repos, ISVNReporterBaton baton, SVNStatusEditor editor) { myBaton = baton; myRepository = repos; myCommonAncestorLocation = repos.getLocation(); myEditor = editor; myLocks = new SVNHashMap(); }
public SVNStatusReporter(SVNRepository repos, ISVNReporterBaton baton, SVNStatusEditor editor) { myBaton = baton; myRepository = repos; myRepositoryLocation = repos.getLocation(); myEditor = editor; myLocks = new SVNHashMap(); }
@Override public int hashCode() { return repository.getLocation().hashCode(); } }
public SVNStatusReporter(SVNRepository repos, ISVNReporterBaton baton, SVNStatusEditor editor) { myBaton = baton; myRepository = repos; myRepositoryLocation = repos.getLocation().toString(); myEditor = editor; myLocks = new HashMap(); }
public HTTPConnection(SVNRepository repository, String charset, File spoolDirectory, boolean spoolAll) throws SVNException { myRepository = repository; myCharset = charset; myHost = repository.getLocation().setPath("", false); myIsSecured = "https".equalsIgnoreCase(myHost.getProtocol()); myIsSpoolAll = spoolAll; mySpoolDirectory = spoolDirectory; myNextRequestTimeout = Long.MAX_VALUE; }
public HTTPConnection(SVNRepository repository, String charset, File spoolDirectory, boolean spoolAll) throws SVNException { myRepository = repository; myCharset = charset; myHost = repository.getLocation().setPath("", false); myIsSecured = "https".equalsIgnoreCase(myHost.getProtocol()); myIsSpoolAll = spoolAll; mySpoolDirectory = spoolDirectory; myNextRequestTimeout = -1; }
public SVNURL getSvnurl() { try { return root.getRepository().getLocation().appendPath(path, false); } catch (SVNException e) { throw new IllegalStateException(path, e); } }
protected SVNURL ensureSessionURL(SVNRepository repository, SVNURL url) throws SVNException { SVNURL oldURL = repository.getLocation(); if (url == null) { url = repository.getRepositoryRoot(true); } if (!url.equals(oldURL)) { repository.setLocation(url, false); return oldURL; } return null; }
protected static SVNURL ensureSessionURL(SVNRepository repository, SVNURL url) throws SVNException { SVNURL oldURL = repository.getLocation(); if (url == null) { url = repository.getRepositoryRoot(true); } if (!url.equals(oldURL)) { repository.setLocation(url, false); return oldURL; } return oldURL; }
protected SVNURL ensureSessionURL(SVNRepository repository, SVNURL url) throws SVNException { SVNURL oldURL = repository.getLocation(); if (url == null) { url = repository.getRepositoryRoot(true); } if (!url.equals(oldURL)) { repository.setLocation(url, false); return oldURL; } return null; }
public HTTPConnection(SVNRepository repository) throws SVNException { myRepository = repository; myHost = repository.getLocation().setPath("", false); myIsSecured = "https".equalsIgnoreCase(myHost.getProtocol()); myIsKeepAlive = repository.getOptions().keepConnection(repository); }
private HTTPSSLKeyManager createKeyManager() { if (!myIsSecured) { return null; } SVNURL location = myRepository.getLocation(); ISVNAuthenticationManager authManager = myRepository.getAuthenticationManager(); String sslRealm = "<" + location.getProtocol() + "://" + location.getHost() + ":" + location.getPort() + ">"; return new HTTPSSLKeyManager(authManager, sslRealm, location); }
private HTTPSSLKeyManager createKeyManager() { if (!myIsSecured) { return null; } SVNURL location = myRepository.getLocation(); ISVNAuthenticationManager authManager = myRepository.getAuthenticationManager(); String sslRealm = "<" + location.getProtocol() + "://" + location.getHost() + ":" + location.getPort() + ">"; return new HTTPSSLKeyManager(authManager, sslRealm, location); }
private SVNRepository getSourceRepository() throws SVNException { if (mySourceRepository == null) { mySourceRepository = SVNRepositoryFactory.create(myRepos.getLocation()); mySourceRepository.setAuthenticationManager(myRepos.getAuthenticationManager()); mySourceRepository.setDebugLog(myRepos.getDebugLog()); mySourceRepository.setTunnelProvider(myRepos.getTunnelProvider()); mySourceRepository.setCanceller(myRepos.getCanceller()); } return mySourceRepository; }
private SVNRepository getRequestedRepository() throws SVNException { if (getDAVResource().getResourceURI().getPath() == null || getDAVResource().getResourceURI().getPath().length() == 0) { return getDAVResource().getRepository(); } SVNURL resourceURL = getDAVResource().getRepository().getLocation(); SVNURL resultURL = resourceURL.appendPath(getDAVResource().getResourceURI().getPath(), true); return SVNRepositoryFactory.create(resultURL); }