T.J. Yang wrote:
I am starting to learn hg.
The example is advising us using ssh protocol to retrieve the code.
hg clone ssh://[EMAIL PROTECTED]/hg/onnv/onnv-gate my-copy
Can http protocol be made available also ?
So the following example works. This will help machine behind corporate firewall
retrieve code directly using http protocol.
You don't need http access to be enabled for that you just
need to use the http proxy with ssh.
Put this into ~/.ssh/config
Host hg.opensolaris.org
ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect %h %p
You can either set HTTPPROXY and HTTPPOXYPORT or http_proxy in your
environment similar to this:
HTTPPROXYPORT=8080
HTTPPROXY=webcache
http_proxy=http://webcache:8080/
Or you can make the ssh_config entry list them explicilty like this:
Host hg.opensolaris.org
ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect -h webcache -p 8080 %h
%p
See the ssh-http-proxy-connect man page for more information.
Note that it doesn't have support for passing a username which you
appear to be doing though.
--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code