Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Assuming that you have not yet propagated your changes, here is what you can do.</p> <ul> <li><p>Add to your .hgrc:</p> <pre><code>[extensions] mq = </code></pre></li> <li><p>In your repository:</p> <pre><code>hg qimport -r0:tip hg qpop -a </code></pre> <p>Of course you need not start with revision zero or pop all patches, for the last just one pop (<code>hg qpop</code>) suffices (see below).</p></li> <li><p>remove the last entry in the <code>.hg/patches/series</code> file, or the patches you do not like. Reordering is possible too.</p></li> <li><code>hg qpush -a; hg qfinish -a</code></li> <li>remove the <code>.diff</code> files (unapplied patches) still in .hg/patches (should be one in your case).</li> </ul> <p>If you <strong>don't want</strong> to <strong>take back all</strong> of your patch, you can edit it by using <code>hg qimport -r0:tip</code> (or similar), then edit stuff and use <code>hg qrefresh</code> to merge the changes into the topmost patch on your stack. Read <code>hg help qrefresh</code>.</p> <p>By editing <code>.hg/patches/series</code>, you can even remove several patches, or reorder some. If your last revision is 99, you may just use <code>hg qimport -r98:tip; hg qpop; [edit series file]; hg qpush -a; hg qfinish -a</code>.</p> <p>Of course, this procedure <strong>is highly discouraged and risky</strong>. <strong>Make a backup</strong> of everything before you do this!</p> <p>As a sidenote, I've done it zillions of times on private-only repositories.</p>
 

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