What environment variables are you using? To what are you setting them? Are you using any extensions? hgsubversion is known to ignore http_proxy, for example.
No, I'm not using any extensions, I simply clone a googlecode HG repository. This is very strange, I also could not reproduce this bug on other machine that has direct Internet access. This runs OK: iptables -A OUTPUT -p tcp --dport 443 -j DROP http_proxy=http://95.31.10.190:3128 https_proxy=http://95.31.10.190:3128 strace hg clone https://mediawiki4intranet.googlecode.com/hg/ mediawiki4intranet But when I'm trying this at work (proxy.custis.ru:3128 is an intranet proxy, port 443 is closed on the router), it fails and strace looks very strange - it seems hg connects to the proxy and starts tunnel connection, but then also tries to connect directly (see attached strace.gz). This command fails: http_proxy=http://proxy.custis.ru:3128/ https_proxy=http://proxy.custis.ru:3128/ hg clone https://mediawiki4intranet.googlecode.com/hg/ mediawiki4intranet -- With best regards, Vitaliy Filippov
strace.gz
Description: GNU Zip compressed data