environment variable for host in [http_proxy] section not working?

Will Fiveash will.fiveash at gmail.com
Sat Apr 13 22:26:35 UTC 2013


On Sat, Apr 13, 2013 at 5:13 PM, Simon King <simon at simonking.org.uk> wrote:

> On 13 Apr 2013, at 19:40, Will Fiveash <will.fiveash at gmail.com> wrote:
>
> 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.
>

I'll look into the %include, thanks.

-- 
Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130413/e1ed74d4/attachment-0002.html>


More information about the Mercurial mailing list