[RFC] mq/qqueue: merging queues

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Thu Sep 9 17:45:04 CDT 2010

Hello All!

In my use-case scenario, I'm using mutilple queues. I basically have this
set of queues:
 - pending      -> patches I've sent for review
 - incoming     -> patches I've been sent, which I should review
 - mine-foo     -> my current work on feature/bug foo
 - mine-bar     -> ditto on bar, and so on...
 - merge        -> prepare before push to upstream

When I'm done on feature/bug foo/bar/..., I send them to the list, and
move the patches to the queue 'pending', and I delete the coresponding
mine-xxx queue.

If patches in 'pending' need rework, I recreate the soressponding queue,
and move them back from 'pending' to that queue, and so on...

When patches in 'pending' have been Acked, I move them to 'merge'.
When patches in 'incoming' are OK, I move them to 'merge'.

When patches arrive in 'merge', I check they apply cleanly, test, and push
to the main repos.

All this means I need to move patches from one queue to another. It can be
the whole series, or a subset of the series.

I've tried to implement a 'qqueue --merge', but that's not so trivial,
especially when dealing with subsets of a series (moving full series is
quite easy, and is almost done, but does not cover all use-cases).

So the question is: what is the best way to do so?

TIA for your advice!

Yann E. MORIN.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

More information about the Mercurial-devel mailing list