[PATCH 1 of 5] resolve: accepts walkopts (-I and -X)

Martin Geisler mg at daimi.au.dk
Wed Aug 6 16:07:36 CDT 2008


Simon Heimberg <simohe at besonet.ch> writes:

> Oo 2008-08-06 at 22:50 +0200, Martin Geisler wrote:
>
>> It should not be necessary to write "if foo == True", since writing
>> "if foo" is equivalent.
>
> No, it is not. if foo is not boolean (example: foo="string") then
> "foo == True" returns false. Like this I only count the options
> without arguments (-I and -X are skipped).

I'm not at all familiar with the code, so you migth be right. It just
looked like a typical mistake to my eyes :-)

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080806/08491d7c/attachment.pgp 


More information about the Mercurial-devel mailing list