Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There's an option http_proxy which should allow access through proxy, but it's not clear whether this should be in the command line, .hgrc or some global variable.

I tried it in the command line:

hg --config=http_proxy.host=_proxy server_

but I still get a Connection timed out error.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

It's actually an environment variable, so try http_proxy=http://proxy_server:4242 hg ... (replace 80 with whatever port your proxy is running on.)

share|improve this answer

I can successfully use the following command:

hg clone <TheURl> <Optional Folder Name> --config=http_proxy.host=<proxy URL>

And obviously by replacing any <> instances with the relevant details.

share|improve this answer

You can setup proxy authentication in .hgrc file.

It store in ~/.hgrc. Here is an example.

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

Note: I currently use SourceTree app on Mac OSX.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.