Patch Branches for Mercurial (pbranch)
Works with (and likely needs) Mercurial 2.4 now.
November 18, 2012
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.
Documentation
- Configuration
- Initialization and Simple Usage
- Submitting Patches by Email
- Exporting Patches to Patch Queues
- Distributing Changes To Patches
- Inserting and Deleting Patches
- Patch Graphs
- Pulling And Merging From Upstream
- Collaboration
- Octopus Merge Resolution
- Sanity Checks
Getting The Code
You can get the code from this bitbucket.org repository. This is a clone of Mercurial with – tada! – patch branches. We also track issues there.
To try it out, you need Mercurial 1.5 or later. Then, download the pbranch extension file and configure it as an extension in your .hgrc
, like so:
[extensions]
pbranch = /path/to/pbranch.py