The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @EvaKestemont: Gezocht voor een vriendin met pech en een zware revalidatie: iemand die enkele maanden bij haar en haar lief en baby wil… 7 hours ago
    • RT @steve_asbell: My therapist said “Why did you get an autism diagnosis? You’re more than a label!” I told him “I have ALWAYS been labele… 7 hours ago
    • @Zangstem Ik duim dat je oud wordt. In goede gezondheid. 7 hours ago
    • RT @JasonErvD: Weet je van die docenten die de cijfers van de hele klas voorlezen of projecteren op het digibord? Moet echt stoppen. Is ec… 7 hours ago
    • RT @IanColdwater: I don't know why keynoting in front of 10,000 people feels less weird than this, but here we are 👩🏻‍💻 https://t.co/25ShsH… 11 hours ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,821 other followers

Archive for June 12th, 2016

mercurial strip – Remove experimental branch – Stack Overflow

Posted by jpluimers on 2016/06/12

I found a working solution here.It works by using hg strip from the mq extension:$ hg strip my_pruned_branchAs mentioned in the comments, this should only be used for unpublished changesets.

Source: mercurial – Remove experimental branch – Stack Overflow

You need mercurial strip for that which ships with Mercurial 2.8 and up but isn’t enabled by default.

Enabling is easy and can be done globally or on a per-repository base which I like better: just edit your .hg/hgrc file inside your repository and add these lines:

[extensions]
strip =

The source StripExtension – Mercurial forgets to mention you can enable this on a repository base.

I used it to delete an experimental branch that I hadn’t yet pushed to the outside world.

–jeroen

Posted in Development, DVCS - Distributed Version Control, Mercurial/Hg, Source Code Management | Leave a Comment »

 
%d bloggers like this: