( )⚙ D11701 dirstate: ignore sub-second component when either is zero in mtime

This is an archive of the discontinued Mercurial Phabricator instance.

dirstate: ignore sub-second component when either is zero in mtime
ClosedPublic

Authored by marmoute on Oct 19 2021, 6:03 PM.

Details

Summary

When comparing mtimes for equality.

Some APIs simply return zero when more precision is not available.
When comparing values from different sources, if only one is truncated in
that way, doing a simple comparison would cause many false negatives.

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.