Configure Mercurial (hg) to Use a Proxy Server
My laptop is behind our corporate firewall for most of the day, so being able to do an hg push/pull against bitbucket.org fails because it isn’t hitting or proxy server. To setup Mercurial to use a proxy server, edit your hrgc file in the .hg folder of your repository and add this section:
[http_proxy] host = foo.bar:8000 passwd = password user = username
Just change the values to your proxy server hostname and port, username and password.
[updated]: fixed passwd, not password
3 Comments to “Configure Mercurial (hg) to Use a Proxy Server”
Leave a Reply





Thanks! It worked
Yes, it’s worked by changing password to passwd!
@matg,
I updated password to passwd. Thanks.