[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial
Subject:    Re: environment variable for host in [http_proxy] section not working?
From:       Will Fiveash <will.fiveash () gmail ! com>
Date:       2013-04-13 22:26:35
Message-ID: CAB5CGZnVOSMLLXkCQHi3Mb4nzTkon2GiwYzOpQR9ZwmjqOxnOQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

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

[Attachment #5 (text/html)]

<div dir="ltr">On Sat, Apr 13, 2013 at 5:13 PM, Simon King <span dir="ltr">&lt;<a \
href="mailto:simon@simonking.org.uk" \
target="_blank">simon@simonking.org.uk</a>&gt;</span> wrote:<br><div \
class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="auto"><div class="im"><div>On 13 Apr 2013, at \
19:40, Will Fiveash &lt;<a href="mailto:will.fiveash@gmail.com" \
target="_blank">will.fiveash@gmail.com</a>&gt; wrote:</div>

<div><blockquote type="cite"><div dir="ltr">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.<br>


</div><div class="gmail_extra"><br></div></blockquote><br></div></div><div>How many \
different hosts are you working with?  Could you configure the proxy globally in your \
~/.hgrc and use the &quot;no&quot; setting to disable it for certain hosts?</div>


<div><br></div><div>Alternatively, you could use %include in the hgrc files to pull \
proxy settings from a single \
file.</div></div></blockquote><div><br></div><div>I&#39;ll look into the %include, \
thanks.<br></div></div><br>

-- <br>Will
</div></div>



_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic