Child pages
  • Mq patch queue instructions

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Currently for most consolidations that are been updated upstream outside OpenIndiana, we maintain a mq patch queue (see Mercurial Queues) that holds our difference from the upstream.

We have a standardized 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

Code Block
[extensions]
mq =

I'll use slim_source (see Caiman consolidation) and revision 151 as an example, but you can simply change both to other consolidations.

  1. First get the main non-mq repo:

    Code Block
    hg clone http://hg.openindiana.org/slim_source
  2. Then update to the revision you are working on:

    Code Block
    cd slim_source
    hg update Build151
  3. Then get the mq repo into .hg/patches:

    Code Block
    hg clone http://hg.openindiana.org/mq_slim_source.hg/patches
  4. And now apply (push) all the patches:

    Code Block
    hg qpush -a

Now you have the latest OpenIndiana patched version of the consolidation.

Note: the qclone facility normally used to automate some of this, doesn't appear to work with the OpenIndiana mq patch repo, so we have to use the two clone method described above.