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.