[PATCH 1 of 2] templating: fix age() function to return 1 minute, 1 hour, 1 day etc

Andrei Polushin polushin at gmail.com
Sun Dec 18 19:37:47 CST 2011


19.12.2011 6:58, Andrei Polushin wrote:
> The existence of plural() function earlier in code show the intent to make
> singular/plural forms, while the condition '>= 2' disables all singular forms
> other than '1 second'.
> 
> [...]
>
> -        if n >= 2 or s == 1:

FWIW, the condition has been introduced in revision 195 (b98bcf66dd9d).

-- 
Andrei Polushin


More information about the Mercurial-devel mailing list