By Darrenmoffat-Oracle on Jan 04, 2008
Casper just asked me: "How do you put your own project workspace on opensolaris.org?. So I wrote up email describing how I do it. Since I thought it might be useful I've included a slightly reworded version of it here.
It has to be in either Mercurial or SubVersion. If it is a project targeting the ONNV consolidation then Mercurial is the choice.
First create a local clone of the Mercurial onnv-gate like this:
$ hg clone ssh://firstname.lastname@example.org/hg/onnv/onnv-gate myproject
Make sure your Teamware gate is at the same point. Now do a 'wx backup' of your teamware workspace.
Untar the ??.clear.tar file from the wx backup directory into the myproject directory.
Check this still builds - it should but you will need to get the closed-bins tar file that match your clone of onnv-gate since you don't have usr/closed.
If it all built find commit this to your local repository
$ hg commit
You now need to create a repository on opensolaris.org to host this. In your project page there is an "SCM Management" link that is shown only to project leads. Click that. On the left hand nav-column there will then be a link "Add Repository". Fill in the form.
The Anonymous here means allow anyone to pull from the repository, if you don't tick that then only people with an opensolaris.org account with loaded ssh keys can do a pull (I generally allow it as do most projects I believe). Project leads can always do a push, and you can delegate that to people who are listed as observers too.
The name you give is tagged on the end of your project URL. So if you say "gate" you will end up with:
The notification email gets every push message, so choose wisely what you set this too. Some projects use a dedicated
You are now ready to push your changes so lets configure your local copy of your Mercurial repository with the paths. Add the following to the .hg/hgrc file in your myproject dir:
[paths] default=ssh://email@example.com/hg/myproject/gate default-push=ssh://firstname.lastname@example.org/hg/myproject/gate onnv-gate=ssh://email@example.com/hg/onnv/onnv-gate
Now lets do the push:
$ hg push
You now have a populated repository on opensolaris.org. To do a resync with onnv-gate you do something like this:
# Make sure you are in sync with the fgap project gate $ hg pull # Merge if needed $ hg merge # Now pull in the onnv-gate changes # if you want a specific build you can say -r onnv_80 after the pull # Note this uses the path alias we defined above to avoid using the full URL $ hg pull onnv-gate $ hg merge $ hg commit $ hg push
Hope this helps.
Note that for all this push/pull to work as your user you need to have your ssh pubkey uploaded for opensolaris.org. If you have ever voted you have done that already.