Prune a Mercurial branch

The manual is perfect for that… http://mercurial.selenic.com/wiki/PruningDeadBranches

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

Done!


Related Posts

Creating a new branch in Mercurial

A really good guide on branching is available here: http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/ 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