[PATCH 1 of 5] resolve: accepts walkopts (-I and -X)
Martin Geisler
mg at daimi.au.dk
Wed Aug 6 15:50:02 CDT 2008
"S. Heimberg" <simohe at besonet.ch> writes:
> # HG changeset patch
> # User simohe at besonet.ch
> # Date 1217694460 -7200
> # Node ID 629d5d5537351e81cd8010d039c8c47a35718c1f
> # Parent cbdfd08eabc96116d801d0e2e7d1856adfdde911
> resolve: accepts walkopts (-I and -X)
>
> diff -r cbdfd08eabc9 -r 629d5d553735 mercurial/commands.py
> --- a/mercurial/commands.py Tue Jul 22 13:03:31 2008 -0500
> +++ b/mercurial/commands.py Sat Aug 02 18:27:40 2008 +0200
> @@ -2242,7 +2242,7 @@
> R = resolved
> """
>
> - if len([x for x in opts if opts[x]]) > 1:
> + if len([x for x in opts if opts[x] == True]) > 1:
It should not be necessary to write "if foo == True", since writing
"if foo" is equivalent.
--
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/d6d38e4f/attachment.pgp
More information about the Mercurial-devel
mailing list