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

Brendan Cully brendan at kublai.com
Wed Aug 6 16:00:28 CDT 2008


On Wednesday, 06 August 2008 at 22:21, Simon Heimberg wrote:
> Oo 2008-08-06 at 22:50 +0200, Martin Geisler wrote:
> 
> 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).

Here's an amusing nit:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 == True
True
>>> 1 is True
False

> > It should not be necessary to write "if foo == True", since writing
> > "if foo" is equivalent.
> > 
> > _______________________________________________
> > Mercurial-devel mailing list
> > Mercurial-devel at selenic.com
> > http://selenic.com/mailman/listinfo/mercurial-devel
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list