[PATCH] templater: shorten pure integers
Sean Farley
sean.michael.farley at gmail.com
Thu Feb 20 15:54:54 CST 2014
Durham Goode <durham at fb.com> writes:
> On 2/19/14 10:52 PM, "Sean Farley" <sean.michael.farley at gmail.com> wrote:
>
>># HG changeset patch
>># User Sean Farley <sean.michael.farley at gmail.com>
>># Date 1392878773 21600
>># Thu Feb 20 00:46:13 2014 -0600
>># Node ID 8ce8e771f4656449181b013d7f16f941f2058ece
>># Parent 0e2877f8605dcaf4fdf2ab7e0046f1f6f80161dd
>>templater: shorten pure integers
>
>>
>>+ if test[0] == '0' or i > cl.rev(cl.tip()):
>
> I think you can just do "i > len(cl)". Otherwise looks good.
Ah, I didn't realize that. Can someone from crew make that change or
should I send another version?
More information about the Mercurial-devel
mailing list