Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit ee42b972 authored by Pierre-Yves David's avatar Pierre-Yves David 🐙
Browse files

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

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.

Differential Revision: https://phab.mercurial-scm.org/D11779
parent a4a5d123fb03
......@@ -89,6 +89,7 @@ anyway.
> rm b && rm -r dir1 && rm d && mkdir d && rm e && mkdir e
> EOF
$ sleep 1 # ensure non-ambiguous mtime
$ hg status --config extensions.dirstaterace=$TESTTMP/dirstaterace.py
M d
M e
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment