[PATCH v7] Allow commit date before Unix epoch, clean fix for (issue2513)

Yuya Nishihara yuya at tcha.org
Fri Apr 8 11:18:04 EDT 2016


On Fri, 8 Apr 2016 14:21:00 +0200, Florent Gallaire wrote:
> # HG changeset patch
> # User Florent Gallaire <fgallaire at gmail.com>
> # Date 1460117463 -7200
> #      Fri Apr 08 14:11:03 2016 +0200
> # Node ID f2787e0d9b3ce78b8a2e13ab6e1a789e1d6a0e56
> # Parent  c5565fc8848dd084d104ca40c33d1acdfcff8bc6
> date: reallow negative timestamp, fix for Windows buggy gmtime() (issue2513)

Queued this version, many thanks!

> +    elif d < -0x7fffffff:
> +        d = -0x7fffffff

Strictly speaking, -0x80000000 doesn't exceed 32bit signed integer, but
this seems okay for consistency with parsedate(), which checks for
abs(when) > 0x7fffffff.


More information about the Mercurial-devel mailing list