How to configure proxy server for turtle effect in Windows?

I set the proxy server in the "global settings" for my turtle on Windows. When I try to connect to bitbucket repositories, the generated command line from tortoisehg was hg clone --debug-- http://bitbucket.org/<path to repo> .

The console is as follows:

 using http://bitbucket.org/<path to repo> proxying through http://172.19.6.47:8080 http auth: user <username>, password not set sending capabilities command 

I also run wirehark to track traffic. To my surprise, traffic is sent directly to the bitbucket. I thought he should first send packets to the proxy server. Does this mean that my proxy server is not taking effect? What can I do to make it take effect?

+7
source share
2 answers

Your mercurial.ini file should have a section like this:

 [http_proxy] host = aproxy.somedomain.com:1234 

Make sure it is present. Maybe it was not saved correctly?

I made a fake entry as above, and tried to pull it out and immediately got a refusal to connect to the proxy.

+4
source

The following webpage has the correct answer.

(1) http://d.hatena.ne.jp/falkenhagen/20091007/1254909363

(2) http://www.jameswampler.com/2010/06/10/configure-mercurial-hg-to-use-a-proxy-server/

From the second link, he says:

My laptop is behind our corporate firewall most of the day, so the ability to do hg push / pull against bitbucket.org fails because it is not a successful or proxy server. To configure Mercurial to use a proxy server, edit the 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 the proxy hostname and port, username and password.

+2
source

All Articles