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.
