[PATCH]mq:a patch stores

Chris Mason mason at suse.com
Tue Sep 13 09:40:21 CDT 2005

On Tue, 13 Sep 2005 22:19:55 +0800
"Ling, Xiaofeng" <xiaofeng.ling at intel.com> wrote:

> I just feel I need this feature.
> some times, I hope remove some patches and add back again.
> so I create a stores file, all the patch that use qdelete will be
> tracked in this file.And each patch can be added back at any 
> time.

I definitely understand why you want this, but I think there's a larger
problem this patch doesn't solve.  You're getting into the general
problem of series file management, where you might want to make a bunch
of comments about a section of patches, disable a patch, or flag a
patch with a special tag.

quilt includes a program called guards, which parses a commented
series.conf file and produces a series file suitable for quilt or mq.

So, your series.conf file might be:

# create mq list command


# tag qrefresh.patch under testing
+testing qrefresh.patch

And "guards < series.conf > series" will produce:

"guards testing < series.conf > series" will produce:

I'd rather not try to solve this larger problem in mq.


More information about the Mercurial mailing list