Mercurial > hg
comparison tests/test-rebuildstate.t @ 30026:ba06562a06a2
dirstate: rebuild should update dirstate properly
Updating dirstate by simply adding and dropping files from self._map doesn't
keep the other maps updated (think: _dirs, _copymap, _foldmap, _nonormalset)
thus introducing cache inconsistency.
This is also affecting the debugstate tests since now we don't even try to set
correct mode and mtime for the files because they are marked dirty anyway and
will be checked during next status call.
author | Mateusz Kwapich <mitrandir@fb.com> |
---|---|
date | Tue, 30 Aug 2016 15:16:28 -0700 |
parents | 54ace3372f84 |
children | 46ba2cdda476 |
comparison
equal
deleted
inserted
replaced
30025:4d9999e43ff7 | 30026:ba06562a06a2 |
---|---|
46 $ hg debugrebuildstate | 46 $ hg debugrebuildstate |
47 | 47 |
48 state dump after | 48 state dump after |
49 | 49 |
50 $ hg debugstate --nodates | sort | 50 $ hg debugstate --nodates | sort |
51 n 644 -1 set bar | 51 n 0 -1 unset bar |
52 n 644 -1 set foo | 52 n 0 -1 unset foo |
53 | 53 |
54 $ hg debugadddrop --normal-lookup file1 file2 | 54 $ hg debugadddrop --normal-lookup file1 file2 |
55 $ hg debugadddrop --drop bar | 55 $ hg debugadddrop --drop bar |
56 $ hg debugadddrop --drop | 56 $ hg debugadddrop --drop |
57 $ hg debugstate --nodates | 57 $ hg debugstate --nodates |
58 n 0 -1 unset file1 | 58 n 0 -1 unset file1 |
59 n 0 -1 unset file2 | 59 n 0 -1 unset file2 |
60 n 644 -1 set foo | 60 n 0 -1 unset foo |
61 $ hg debugrebuildstate | 61 $ hg debugrebuildstate |
62 | 62 |
63 status | 63 status |
64 | 64 |
65 $ hg st -A | 65 $ hg st -A |
113 r 0 0 * bar (glob) | 113 r 0 0 * bar (glob) |
114 a 0 -1 * qux (glob) | 114 a 0 -1 * qux (glob) |
115 $ hg debugrebuilddirstate --minimal | 115 $ hg debugrebuilddirstate --minimal |
116 $ hg debugdirstate --nodates | 116 $ hg debugdirstate --nodates |
117 r 0 0 * bar (glob) | 117 r 0 0 * bar (glob) |
118 n 644 -1 * foo (glob) | 118 n 0 -1 * foo (glob) |
119 a 0 -1 * qux (glob) | 119 a 0 -1 * qux (glob) |
120 $ hg status -A | 120 $ hg status -A |
121 A qux | 121 A qux |
122 R bar | 122 R bar |
123 ? baz | 123 ? baz |