[PATCH 2 of 2] fancyopts: Parse options that occur after arguments

Augie Fackler durin42 at gmail.com
Wed Feb 11 07:29:17 CST 2009


On Feb 11, 2009, at 1:58 AM, Martin Geisler wrote:

> Augie Fackler <durin42 at gmail.com> writes:
>
> Hi,
>
> Thank you very much for fixing this!
>
>> # HG changeset patch
>> # User Augie Fackler <durin42 at gmail.com>
>> # Date 1234293960 21600
>> # Node ID d60bce14bef66cf672d7e1ab894a55ec620ae18a
>> # Parent  cb122aee1bf08a5b738bd72f469255adb00d1760
>> fancyopts: Parse options that occur after arguments.
>>
>> This changes the behavior of qguard in the case of setting negative
>> guards, as -- will now always be required.  Fixes issue1402.  Doc
>> fixes for mq by mpm.
>>
>> diff --git a/hgext/mq.py b/hgext/mq.py
>> --- a/hgext/mq.py
>> +++ b/hgext/mq.py
>> @@ -1993,13 +1993,14 @@
>>
>>     With no arguments, print the currently active guards.
>>     With arguments, set guards for the named patch.
>> +    NOTE: Specifying negative guards now requires '--'.
>
> One little thing: I don't think the documentation need to refer to the
> old behavior, so the 'now' is unnecessary. And it wouldn't make sense
> for a new user who had never tried the old behavior.

mpm specifically requested it be that way.

>
>
> -- 
> Martin Geisler
>
> VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
> SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090211/27bcb58a/attachment.bin 


More information about the Mercurial-devel mailing list