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

Martin Geisler mg at daimi.au.dk
Wed Feb 11 01:58:57 CST 2009


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.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.


More information about the Mercurial-devel mailing list