public SVNLogClient createLogClient() { final SVNLogClient client = new SVNLogClient(getPool(), myConfiguration.getOptions(myProject)); client .getOperationsFactory() .setAuthenticationManager(myConfiguration.getAuthenticationManager(this)); return client; }
public SVNStatusClient createStatusClient() { SVNStatusClient client = new SVNStatusClient(getPool(), myConfiguration.getOptions(myProject)); client .getOperationsFactory() .setAuthenticationManager(myConfiguration.getAuthenticationManager(this)); client.setIgnoreExternals(false); return client; }
private void createPool() { if (myPool != null) return; final String property = System.getProperty(KEEP_CONNECTIONS_KEY); final boolean keep; boolean unitTestMode = ApplicationManager.getApplication().isUnitTestMode(); // pool variant by default if (StringUtil.isEmptyOrSpaces(property) || unitTestMode) { keep = !unitTestMode; // default } else { keep = Boolean.getBoolean(KEEP_CONNECTIONS_KEY); } myPool = new SvnIdeaRepositoryPoolManager( false, myConfiguration.getAuthenticationManager(this), myConfiguration.getOptions(myProject)); }
public ISVNOptions getSvnOptions() { return myConfiguration.getOptions(myProject); }
public SVNWCClient createWCClient(@NotNull ISVNAuthenticationManager manager) { final SVNWCClient client = new SVNWCClient(getPool(), myConfiguration.getOptions(myProject)); client.getOperationsFactory().setAuthenticationManager(manager); return client; }
public SVNRepository createRepository(SVNURL url) throws SVNException { SVNRepository repos = SVNRepositoryFactory.create(url); repos.setAuthenticationManager(myConfiguration.getAuthenticationManager(this)); repos.setTunnelProvider(myConfiguration.getOptions(myProject)); return repos; }
public SVNWCAccess createWCAccess() { final SVNWCAccess access = SVNWCAccess.newInstance(null); access.setOptions(myConfiguration.getOptions(myProject)); return access; }