Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If this was my tree and it hasn't been pushed anywhere, I'd (assuming an empty patch queue and MQ enabled):</p> <pre><code>hg qimport -g -r B: # import revisions B and later into mq as "git" style patches hg qpop -a # unapply them all hg qpush --move C # Apply changes in C (--move rearranges the order) hg qpush --move D # Apply changes in D hg qfin -a # Convert C &amp; D back to changesets hg push &lt;release server&gt; # Push them out to the release branch </code></pre> <p>Then you can <code>hg qpush -a; hg qfin -a</code> to get B &amp; E back into changesets. </p> <p>Final Result:</p> <pre><code>---A---C---D---B---E </code></pre> <p>Advantages:</p> <ul> <li>Nobody needs know you didn't do things in this order to start with (evil grin)</li> <li>You could modify any of the change-sets whilst doing this</li> </ul> <hr> <p>Alternatively, with graft in 2.0:</p> <pre><code>hg update -r A # Goto rev A (no need to do anything special for A) hg graft C # Graft C on to a new anonymous branch hg graft D # Graft D </code></pre> <p>This will give you</p> <pre><code>---A---B---C---D---E \ --C'--D' &lt;-You are here </code></pre> <p>An <code>hg push -r D'</code> should just push the new, cherry-picked, head.</p> <p>You can then <code>hg merge</code> to get one head again with B and E included.</p> <p>Advantages:</p> <ul> <li>Non destructive, so true history is kept, and no chance of loss if you muck up</li> <li>hg tags the new changesets with the hash of the original version, so totally trackable</li> <li>Probably a little simpler.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload