comparison tests/test-dirstate-race.t @ 48375:4c61c7f75de6

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 23 Nov 2021 16:32:56 +0100
parents f3f41e23c1fa
children 03644a929d6e
comparison
equal deleted inserted replaced
48374:a4a5d123fb03 48375:4c61c7f75de6
87 87
88 $ cat > $TESTTMP/dirstaterace.sh <<EOF 88 $ cat > $TESTTMP/dirstaterace.sh <<EOF
89 > rm b && rm -r dir1 && rm d && mkdir d && rm e && mkdir e 89 > rm b && rm -r dir1 && rm d && mkdir d && rm e && mkdir e
90 > EOF 90 > EOF
91 91
92 $ sleep 1 # ensure non-ambiguous mtime
92 $ hg status --config extensions.dirstaterace=$TESTTMP/dirstaterace.py 93 $ hg status --config extensions.dirstaterace=$TESTTMP/dirstaterace.py
93 M d 94 M d
94 M e 95 M e
95 ! b 96 ! b
96 ! dir1/c 97 ! dir1/c