environment variable for host in [http_proxy] section not working?
Simon King
simon at simonking.org.uk
Sat Apr 13 22:13:50 UTC 2013
On 13 Apr 2013, at 19:40, Will Fiveash <will.fiveash at gmail.com> wrote:
On Fri, Apr 12, 2013 at 7:42 PM, Augie Fackler <raf at durin42.com> wrote:
>
> On Apr 12, 2013, at 6:06 PM, Kevin Bullock <
> kbullock+mercurial at ringworld.org> wrote:
>
> > I think hg also respects the 'http_proxy' environment variable.
>
> It does.
Thanks for the tip. The problem is that I want to set the http proxy for
some hg repos, not all. And while I can do that if I specify the actual
proxy server in the .hgrc I thought it would be nicer if the .hgrc
referenced an environment variable so I could change that in one place (the
env. var.) instead of editing every .hgrc that is setting http proxy.
How many different hosts are you working with? Could you configure the
proxy globally in your ~/.hgrc and use the "no" setting to disable it for
certain hosts?
Alternatively, you could use %include in the hgrc files to pull proxy
settings from a single file.
Hope that helps,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130413/7e570af6/attachment-0002.html>
More information about the Mercurial
mailing list