[PATCH] manifest: removed usage of the global cmp function

Dirkjan Ochtman dirkjan at ochtman.nl
Sat Aug 7 15:19:48 CDT 2010


On Sat, Aug 7, 2010 at 21:14, Renato Cunha <renatoc at gmail.com> wrote:
> # HG changeset patch
> # User Renato Cunha <renatoc at gmail.com>
> # Date 1281208371 10800
> # Node ID 4900e7abd6f26b7833a47c73df125e4f16b7d35e
> # Parent  99aed79127914117c17fc5d096f855d5622bc29c
> manifest: removed usage of the global cmp function
>
> Py3k doesn't have a global cmp() function, making this call problematic in the
> py3k port. Also, calling cmp() here is not necessary, since we only want to
> know if the two values are equal. A check for equality perfect in this case and
> this patch does that.

Nice one. This should be a good deal faster, too.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list