Currently for most consolidations that are been updated upstream outside openindiana we maintain a mq patch queue that holds our difference from the upstream. We have a standardised system for which to store and apply this to produce and build OpenIndiana versions.
Mq is a Mercurial extension and must be turned on before use.
Edit your ~/.hgrc file and add
I'll use slim_source (caimen consolidation) and revision 151 as an example, but simply change both to other consolidations.
First get the main non mq repo
hg clone http://hg.openindiana.org/slim_source
then update to the revision you are working on
hg update Build151
Then get the mq repo into .hg/patches
hg clone http://hg.openindiana.org/mq_slim_source .hg/patches
and now apply (push) all the patches
hg qpush -a
Now you have the latest openindiana patched version of the consolidation.
Note: the qclone facility to automate some of this, doesn't appear to work with the openindiana mq patch repo, so have to use the two clone method above.