Trying to understand qguard

Stephen Rasku mercurial at srasku.net
Sat Oct 17 18:20:11 UTC 2009


On Sat, Oct 17, 2009 at 03:39, Patrick Mézard <pmezard at gmail.com> wrote:
>
> Stephen Rasku a écrit :
> > So, I have a few questions.
> >
> > Why is the patch apparently being removed when I have a positive guard
> > and I apply that guard?  Why is the patch being added when I have a
> > positive guard and the positive guard is not active?  Why does the patch
> > stay applied no matter what I do?  Do I have a fundamental
> > misunderstanding on how this is supposed to work?
>
> Only that qselect does not change the state of the applied queue, it just displays what would happen were the queue to be reapplied. You should retry your examples followed by a:
>
> hg qpop -a
> hg qpush -a
>
> everytime to make things clearer.

OK, that makes sense.  Thanks.

However, I think the message

    number of guarded, applied patches has changed from 0 to 1

is a bit misleading.  It makes it seem like the number of applied
patches is changing but it isn't.  A better message would be:

    expt.patch should not be selected but it is already applied

or maybe

    number of unselected patches that are still applied has changed from 0 to 1

...Stephen




More information about the Mercurial mailing list