How to run Mercurial on Suse SLES 11 SP1 behind proxy with authentication ?

Matt Mackall mpm at selenic.com
Fri Jan 17 20:18:56 UTC 2014


On Fri, 2014-01-17 at 20:19 +0100, Luca Toldo wrote:
> Dear experts,
> I have a server running Suse SLES 11 SP1 behind proxy with authentication.
> hg clone https://....
> does not work since urllib2 (that is used by mercurial) does not
> appropriately handle proxy with authentication.
> Can you please instruct me what to do ?
> I thought to install urllib3 and then recompile mercurial using urllib3
> instead of urllib2 however I couldn't find anyone describing it in the net
> and therefore I do not feel sure.
> Could you please instruct me ?

You may be able to set your proxy username and password in your proxy
URLs. For instance:

$ set http_proxy = http://myname:mypass@proxy.derpcorp.com/

You're going to have a bad time trying to replace libraries.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list