Mercurial behind a proxy

How to use Mercurial through an HTTP proxy by supplying proxy host and port settings with the hg --config parameter.

For getting data with using a proxy simply modify the command with included --config-parameter with proxy-information.

So the original:

hg clone https://ralfwscratchpad.googlecode.com/hg/ ralfwscratchpad

transforms to:

hg --config http_proxy.host=proxy:8080 clone https://ralfwscratchpad.googlecode.com/hg/ ralfwscratchpad