changeset 48389:03644a929d6e

test: use a different timestamp for the updated file In the test we want to trigger a write after the underlying dirstate changed. To do so, we need a write. And as we are about to make dirstate update smarter we need to meddle with the script a bit to make sure there will be a write. Differential Revision: https://phab.mercurial-scm.org/D11793
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 18 Nov 2021 15:00:13 +0100
parents f5dea753fe4e
children 322525db4c98
files tests/test-dirstate-race.t
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-dirstate-race.t	Tue Nov 23 03:22:30 2021 +0100
+++ b/tests/test-dirstate-race.t	Thu Nov 18 15:00:13 2021 +0100
@@ -148,6 +148,8 @@
   > 
   > hg update -q -C 0
   > hg cat -r 1 b > b
+  > # make sure the timestamps is not ambiguous and a write will be issued
+  > touch -t 198606251012 b
   > EOF
 
 "hg status" below should excludes "e", of which exec flag is set, for