I whipped up the following shell script to try and setup the hg environment. It sets http_proxy.host, ui.username, email.from, and of course hgext.cdm.
High level summary: it checks for the presence of SWAN, if found, then: sets proxy based $http_proxy, if $http_proxy isn't set then it sets it to "webcache:8080" does an LDAP lookup for the email address sets the cadmium path to load up out of my workstation for now (will eventually point to onnv-tools) if not on SWAN: sets the cadmium path to look out of the workspace where hgsetup.sh is run from does a getent passwd to get the fullname to set ui.username Comments appreciated... cheers, steve -- stephen lau // stevel at sun.com | 650.786.0845 | http://whacked.net opensolaris // solaris kernel development -------------- next part -------------- A non-text attachment was scrubbed... Name: hgsetup.sh Type: application/x-shellscript Size: 3461 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/scm-migration-dev/attachments/20070419/691cfb99/attachment.bin>