This is an archive of the discontinued Mercurial Phabricator instance.

tests: ensure a status will have non ambiguous mtime in some race test
ClosedPublic

Authored by marmoute on Nov 24 2021, 6:11 AM.

Details

Summary

For the test to work, we need some mtime to be recorded. For them to be recorded, they need to be "clearly in the past", otherwise edit with the same mtime would be possible.

Strictly speaking there might be file system with a minimal mtime increment
longer than one second. However it is unlikely that we will run the test on
them for now. We can be smarter about this in the future if it becomes
necessary.

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.