Prune a Mercurial branch

The manual is perfect for that…

All you have to do is:

hg heads

Identify the branch you want to close (get the revision number, let’s say 951)

hg update -C 951

hg commit –close-branch -m “This version never worked”

hg update -C default


Related Posts

Creating a new branch in Mercurial

A really good guide on branching is available here: In my case,...

Automatically updating a working copy on a remote server using Mercurial

Introduction Imagine you have two servers: on one server, you have a Mercurial...

Quick Contact Form