Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>EDIT</strong> ouch, too late... I know read your comment stating that you want to keep the feature-x changeset around, so the cloning approach here doesn't work.</p> <p>I'll still let the answer here for it may help others.</p> <p>If you want to completely get rid of "feature X", because, for example, it didn't work, you can clone. This is one of the method explained in the article and it does work, and it talks specifically about heads.</p> <p>As far as I understand you have this and want to get rid of the "feature-x" head once and for all:</p> <pre><code>@ changeset: 7:00a7f69c8335 |\ tag: tip | | parent: 4:31b6f976956b | | parent: 2:0a834fa43688 | | summary: merge | | | | o changeset: 5:013a3e954cfd | |/ summary: Closed branch feature-x | | | o changeset: 4:31b6f976956b | | summary: Changeset2 | | | o changeset: 3:5cb34be9e777 | | parent: 1:1cc843e7f4b5 | | summary: Changeset 1 | | o | changeset: 2:0a834fa43688 |/ summary: Changeset C | o changeset: 1:1cc843e7f4b5 | summary: Changeset B | o changeset: 0:a9afb25eaede summary: Changeset A </code></pre> <p>So you do this:</p> <pre><code>hg clone . ../cleanedrepo --rev 7 </code></pre> <p>And you'll have the following, and you'll see that feature-x is indeed gone:</p> <pre><code>@ changeset: 5:00a7f69c8335 |\ tag: tip | | parent: 4:31b6f976956b | | parent: 2:0a834fa43688 | | summary: merge | | | o changeset: 4:31b6f976956b | | summary: Changeset2 | | | o changeset: 3:5cb34be9e777 | | parent: 1:1cc843e7f4b5 | | summary: Changeset 1 | | o | changeset: 2:0a834fa43688 |/ summary: Changeset C | o changeset: 1:1cc843e7f4b5 | summary: Changeset B | o changeset: 0:a9afb25eaede summary: Changeset A </code></pre> <p>I may have misunderstood what you wanted but please don't mod down, I took time reproducing your use case : )</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