Patch Branch Extension
This extension is not distributed with Mercurial.
Author: Peter Arrenbrecht
Repository: http://bitbucket.org/parren/hg-pbranch/ (make sure you pick the right version there)
Patch branches (pbranch) is a way to develop a series of patches for submission into a main repo. It is based on topic branches, one per patch, and is thus highly suitable for collaborative and/or long-term patch development and maintenance.
Configure your .hgrc to enable the extension by adding following lines:
[extensions] pbranch = /path/to/pbranch.py