This is an archive of the discontinued Mercurial Phabricator instance.

dirstate-v2: Change the representation of negative directory mtime
ClosedPublic

Authored by SimonSapin on Oct 12 2021, 7:55 AM.

Details

Summary

Change it from how I previously thought C’s timespec works
to how it actually works.

The previous behavior was also buggy for timestamps strictly before the
epoch but less than one second away from it, because two’s complement
does not distinguish negative zero from positive zero.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.