equal
deleted
inserted
replaced
158 $ hg debugdirstate |
158 $ hg debugdirstate |
159 n * * * a (glob) |
159 n * * * a (glob) |
160 |
160 |
161 $ rm b |
161 $ rm b |
162 |
162 |
|
163 #if fsmonitor |
|
164 |
|
165 Create fsmonitor state. |
|
166 |
|
167 $ hg status |
|
168 $ f --type .hg/fsmonitor.state |
|
169 .hg/fsmonitor.state: file |
|
170 |
|
171 Test that invalidating fsmonitor state in the middle (which doesn't require the |
|
172 wlock) causes the fsmonitor update to be skipped. |
|
173 hg debugrebuilddirstate ensures that the dirstaterace hook will be called, but |
|
174 it also invalidates the fsmonitor state. So back it up and restore it. |
|
175 |
|
176 $ mv .hg/fsmonitor.state .hg/fsmonitor.state.tmp |
|
177 $ hg debugrebuilddirstate |
|
178 $ mv .hg/fsmonitor.state.tmp .hg/fsmonitor.state |
|
179 |
|
180 $ cat > $TESTTMP/dirstaterace.sh <<EOF |
|
181 > rm .hg/fsmonitor.state |
|
182 > EOF |
|
183 |
|
184 $ hg status --config extensions.dirstaterace=$TESTTMP/dirstaterace.py --debug |
|
185 skip updating fsmonitor.state: identity mismatch |
|
186 $ f .hg/fsmonitor.state |
|
187 .hg/fsmonitor.state: file not found |
|
188 |
|
189 #endif |
|
190 |
163 Set up a rebase situation for issue5581. |
191 Set up a rebase situation for issue5581. |
164 |
192 |
165 $ echo c2 > a |
193 $ echo c2 > a |
166 $ echo c2 > b |
194 $ echo c2 > b |
167 $ hg add b |
195 $ hg add b |