I am trying to set up my workflow with MQ as described in the MqTutorial and in the HGbook Chapter 13.
The part I struggle with is how to have multiple patch queques under version.
Alternatives:
I. Create a separate repository for every queue. To make this manageable mark the repos as subrepos in the .hgsub file
Problem: the following results in an error: path contains illegal component
.hg/patches-queue1 = .hg/patches-queue1
II. HGbook Chapter 13 describes that you can add patches in subdirectories like
qnew queue1/patch1.diff
Problem: All the patches are still in the same queue and have to be applied in order
Is there another way to have all my patch queues under version control and pushed?
Multiple HG MQ patch queues in one repository?
Check out the
hg qqueuecommand that’s part of mq. It lets you switch multiple patch queues in an automated fashion:You can’t have the stuff in .hg be sub-repos of the external (outer/parent) repos but it should be possible to have different paths for each of the qqueue repos, and perhaps make them all subrepos of a parent repo that is itself inside .hg/patches.