[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: supporting http proxy via a config file

From: Chris D. Sloan <cds_at_cs.hmc.edu>
Date: 2002-03-13 00:28:49 CET

On Tue, Mar 12, 2002 at 10:57:47PM +0000, Philip Martin wrote:
> Mark Benedetto King <bking@answerfriend.com> writes:
>
> > On Tue, Mar 12, 2002 at 04:17:21PM -0600, Karl Fogel wrote:
> > > > What I personally,
> > > > need is several different sets of proxy configurations: one for at home,
> > > > one for at work-site A, and one for at work-site B. Having multiple
> > > > includes would allow me to neatly separate out this complexity, but
> > > > I'd still need to be able to tell subversion "use HOME config", or "use
> > > > SITE-A config".
> > >
> > > Using a separate `proxies' file gives you what you need here, right?
> > >
> >
> > Only if I juggle them myself. I suppose that's reasonable, but I
> > have this pipe dream of being able to set an environment variable
> > called "SITE" at login time (based off of my DHCP info), and then
> > having all of my applications DTRT.
> >
> > As it is, I have to change umpteen proxy-configuration files,
> > one for each network-aware application, except for those that
> > use getenv("http_proxy"), which we all know is insufficient
> > for complex proxying scenarios.
> >
> > I suppose I could change all of them automatically when SITE
> > changes, but wouldn't it be neat if I didn't have to do that?
>
> If Subversion used an SVN_CONFIG_DIR environment variable to override
> the default ~/.subversion/ then you could maintain multiple
> configurations in different directories (possibly with any common
> files linked together) and choose which to use with something like
> 'export SVN_CONFIG_DIR=$HOME/.subversion/$SITE/'.
>
> This won't work if the configuration is all just one big file.

+1 to multiple config files for the reasons previously mentioned.
In particular, you can maintain nearly identical configs more easily
across hosts or environments.

-- 
Chris Sloan
cds@cs.hmc.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 13 00:29:51 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.