Mercruial ignoring http_proxy settings
Martin Geisler
mg at aragost.com
Wed Dec 14 08:37:10 UTC 2011
Ton Plomp <tcplomp at gmail.com> writes:
> Hi,
>
> I'm trying to connect to a mercurial repo via a proxy, setting the
> proxy with TortoiseHG didin't work, so I tried to actively set the
> http_proxy.host via the CMD with the following command:
>
> hg --config http_proxy.host=10.192.132.191:5865 --config
> http_proxy.always=true incoming thuis
>
> MS-network logs shows that hg directly tries to connect to 'thuis'
> instead of going through the proxy.
>
> I'm using the same proxy on another computer without any issues.
>
> The computer is running WinXP and connected to a windows domain (the
> working computer as well).
>
> Is there anything I can try to debug this?
Hi, I commented on your StackOverflow question, great to see you here!
The only thing you can add is --debug. That will make Mercurial print
some more information. I tested it here by adding
[paths]
foo = http://foobar
[http_proxy]
host = no-such-host
to a .hg/hgrc file and then I get:
$ incoming foo --debug
using http://foobar/
proxying through http://no-such-host:None
sending capabilities command
abort: error: Name or service not known
That shows me that
1) the foo is correctly expanded to a HTTP URL
2) the proxy config is read and hg tries to use it
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/
More information about the Mercurial
mailing list