equal
deleted
inserted
replaced
25 > pass # just truncate the file |
25 > pass # just truncate the file |
26 > return res |
26 > return res |
27 > EOF |
27 > EOF |
28 |
28 |
29 Do an update where file 'a' is changed between hg writing it to disk |
29 Do an update where file 'a' is changed between hg writing it to disk |
30 and hg writing the dirstate. It results in a corrupted dirstate, which |
30 and hg writing the dirstate. The dirstate is correct nonetheless, and |
31 stores the wrong size, and thus hg status shows spuriously modified |
31 so hg status correctly shows a as clean. |
32 files. |
|
33 |
32 |
34 $ hg up -r 0 --config extensions.race=$TESTTMP/dirstaterace.py |
33 $ hg up -r 0 --config extensions.race=$TESTTMP/dirstaterace.py |
35 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
34 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
36 $ hg debugdirstate --no-dates |
35 $ hg debugdirstate --no-dates |
37 n 644 0 (set |unset) a (re) |
36 n 644 2 (set |unset) a (re) |
38 $ echo a > a; hg status; hg diff |
37 $ echo a > a; hg status; hg diff |
39 M a |
|