Mercruial ignoring http_proxy settings
Ton Plomp
tcplomp at gmail.com
Tue Jan 3 12:58:30 UTC 2012
The thing is weird.
other repositories (bitbucket for instance) are being routed through the
proxy.
If I use a slightly changed URL I get an:
abort:error:getaddrinfo failed
I've traced all mercurial.ini and nowhere can I find a special issue for
this address.
Ton
2011/12/14 Ton Plomp <tcplomp at gmail.com>
> I've run the command with --debug, and I see that that mercurial says it's
> proxying...
> I can't run any more tests today, but tomorrow I'll see if I can norrow
> this a little bit more, any insight is welcomed.
>
> Ton
>
> 2011/12/14 Martin Geisler <mg at aragost.com>
>
>> 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/
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120103/e880a88d/attachment-0002.html>
More information about the Mercurial
mailing list