Monday, June 04, 2012

configure proxy for mercurial

There are two quick way of doing it:

1: If you are temporarily behind a proxy, simply,  hg pull --config http_proxy.host=proxyhost:port. If your proxy requires username and password, add --config http_proxy.user=username --config http_proxy.passwd=password as well.

2: If you are behind a proxy, you may want to add the following to .hg/hgrc

[http_proxy]
host=proxyhost:port
passwd=password
user=username