[PATCH] [mq] addchangegroupe finalize mq patches if changeset children are added

Gilles Moris gilles.moris at free.fr
Mon Mar 14 01:53:23 CDT 2011


On Saturday 12 March 2011 07:30:46 pm David Pierre-Yves wrote:
> On 12 mars 11, at 18:57, Pierre-Yves David wrote:
> > With this change, any mq patches getting standard changeset
> > descendant get
> > finalize uncondfitionnaly. Status messages are displayed for the user.
>
> There is actually Two sane possibilities to handle the situation.
>
> - Reject pull, highlight the harmful situation and suggest finish (as
> djc suggests)
> - Accept pull and finish inconsistent patches (with children) (as
> implemented)
>
> And two mixed solution.
>
> - Reject unless -f is provided (and finish inconsistent patches).
> - Prompt the user to either accept the pull (finishing inconsistent
> patches) or reject it.
>
> The most problematic part of automatically finishing mq patches is
> that finishing a patch is not easy to rollback. Patches files à remove
> from .hg/patches/, series files are modified and revision can only be
> reimported with qimport (loosing patch name information)

I don't like tools to take decision on my behalf. I want to decide what to do 
with it because I am the one who knows the workflow that leads there.
Possibly attempting a dry-run merge of my queue or my be I just made a 
mistake.

So Reject pull and suggest finish has my preference.

Regards.
Gilles.


More information about the Mercurial-devel mailing list