Mercurial Initial Setup for ON development

From Genunix

Jump to: navigation, search


Contents

Setup for ON development - hgsetup

If you haven't already, run the "/opt/onbld/bin/hgsetup" (or "/ws/onnv-tools/onbld/bin/hgsetup") script. If you have multiple home directories (for example in different geos) run it once from each home directory.

  • Run hgsetup -? for usage.

The majority of users simply need to run hgsetup without any options, but some options are useful for overriding defaults, for example:

$ /share/onnv-tools/onbld/bin/hgsetup -f \
> -c /share/onnv-tools/onbld/lib/python/onbld/hgext/cdm.py \
> -n "Stacey Jonathan Marshall" \                           
> -m \~/tools/HG/sparc/onbld/bin/gpyfm
Detected SWAN connection
Configured the following:
   email: Stacey.Marshall@Sun.COM
   username: Stacey Jonathan Marshall
   cadmium: /share/onnv-hg-tools/onbld/lib/python/onbld/hgext/cdm.py
   merge: ~/tools/HG/sparc/onbld/bin/gpyfm
Please check /home/sm26363/.hgrc and confirm everything looks correct
$

Ace 14:14, 28 August 2008 (BST)

Confirm path aliases are setup correctly in .hgrc file

hgsetup configures some default paths for you in ~/.hgrc file. Depending on when you initially ran hgsetup the paths maybe out-of-date. Currently the ON [paths] block should include the following values:

[paths]
onnv-gate=ssh://onhg@onnv.sfbay.sun.com//export/onnv-gate
onnv-clone=ssh://onnv.sfbay.sun.com//export/onnv-clone
onnv-closed=ssh://onhg@onnv.sfbay.sun.com//export/onnv-gate/usr/closed
onnv-closed-clone=ssh://onnv.sfbay.sun.com//export/onnv-clone/usr/closed
  • Update your ~/.hgrc file as required.

Venkytv

Set up an account on opensolaris.org

An OpenSolaris.ORG account is essential for putting code back to the public ON gate. You can register by filling in the Registration form.

Publish your SSH keys

Follow the instructions to generate and upload your keypair. You SHOULD NOT have an empty pass-phrase for the key.

It may take up to 24 hours for your keys to be propagated to the gate. So register early to avoid delay when you wish to integrate your changes.

Venkytv


  • Venkytv 03:51, 6 August 2008
  • Ace 14:14, 28 August 2008 (BST)
Personal tools