##// END OF EJS Templates
dirstate-map: add a missing debug wait point when accessing the v2 docket...
Raphaël Gomès -
r52946:af54626b default
parent child Browse files
Show More
@@ -167,6 +167,7 class _dirstatemapcommon:
167 return fp
167 return fp
168
168
169 def _readdirstatefile(self, size: int = -1) -> bytes:
169 def _readdirstatefile(self, size: int = -1) -> bytes:
170 testing.wait_on_cfg(self._ui, b'dirstate.pre-read-file')
170 try:
171 try:
171 with self._opendirstatefile() as fp:
172 with self._opendirstatefile() as fp:
172 return fp.read(size)
173 return fp.read(size)
@@ -176,6 +177,7 class _dirstatemapcommon:
176
177
177 @property
178 @property
178 def docket(self) -> "docketmod.DirstateDocket":
179 def docket(self) -> "docketmod.DirstateDocket":
180 testing.wait_on_cfg(self._ui, b'dirstate.pre-read-file')
179 if not self._docket:
181 if not self._docket:
180 if not self._use_dirstate_v2:
182 if not self._use_dirstate_v2:
181 raise error.ProgrammingError(
183 raise error.ProgrammingError(
@@ -167,23 +167,7 The file should in a "added" state
167
167
168 The status process should return a consistent result and not crash.
168 The status process should return a consistent result and not crash.
169
169
170 #if dirstate-v1
170 #if rust dirstate-v2-append pre-some-read
171 $ cat $TESTTMP/status-race-lock.out
172 A dir/n
173 A dir/o
174 R dir/nested/m
175 ? p
176 ? q
177 #else
178 #if rhg pre-some-read dirstate-v2-append
179 $ cat $TESTTMP/status-race-lock.out
180 A dir/o
181 R dir/nested/m
182 ? dir/n
183 ? p
184 ? q
185 #else
186 #if rust no-rhg dirstate-v2-append
187 $ cat $TESTTMP/status-race-lock.out
171 $ cat $TESTTMP/status-race-lock.out
188 A dir/o
172 A dir/o
189 R dir/nested/m
173 R dir/nested/m
@@ -198,8 +182,6 The status process should return a consi
198 ? p
182 ? p
199 ? q
183 ? q
200 #endif
184 #endif
201 #endif
202 #endif
203 $ cat $TESTTMP/status-race-lock.log
185 $ cat $TESTTMP/status-race-lock.log
204
186
205 final cleanup
187 final cleanup
@@ -249,30 +231,19 commit was created, and status is now cl
249
231
250 The status process should return a consistent result and not crash.
232 The status process should return a consistent result and not crash.
251
233
252 #if no-rhg
234 #if dirstate-v1
235 $ cat $TESTTMP/status-race-lock.out
236 ? dir/n
237 ? p
238 ? q
239 #endif
240 #if dirstate-v2
253 $ cat $TESTTMP/status-race-lock.out
241 $ cat $TESTTMP/status-race-lock.out
254 A dir/o
242 A dir/o
255 R dir/nested/m
243 R dir/nested/m
256 ? dir/n
244 ? dir/n
257 ? p
245 ? p
258 ? q
246 ? q
259 $ cat $TESTTMP/status-race-lock.log
260 #else
261 #if pre-some-read dirstate-v2-append
262 $ cat $TESTTMP/status-race-lock.out
263 A dir/o
264 R dir/nested/m
265 ? dir/n
266 ? p
267 ? q
268 $ cat $TESTTMP/status-race-lock.log
269 #else
270 $ cat $TESTTMP/status-race-lock.out
271 ? dir/n
272 ? p
273 ? q
274 $ cat $TESTTMP/status-race-lock.log
275 #endif
276 #endif
247 #endif
277
248
278 final cleanup
249 final cleanup
@@ -323,21 +294,7 do an update
323
294
324 The status process should return a consistent result and not crash.
295 The status process should return a consistent result and not crash.
325
296
326 #if rhg dirstate-v2-append pre-some-read
297 #if rust dirstate-v2-append pre-some-read
327 $ cat $TESTTMP/status-race-lock.out
328 A dir/o
329 R dir/nested/m
330 ! dir/i
331 ! dir/j
332 ! dir/nested/h
333 ! dir2/k
334 ! dir2/l
335 ! g
336 ? dir/n
337 ? p
338 ? q
339 #else
340 #if rust no-rhg dirstate-v2-append
341 $ cat $TESTTMP/status-race-lock.out
298 $ cat $TESTTMP/status-race-lock.out
342 A dir/o
299 A dir/o
343 R dir/nested/m
300 R dir/nested/m
@@ -357,7 +314,6 The status process should return a consi
357 ? p
314 ? p
358 ? q
315 ? q
359 #endif
316 #endif
360 #endif
361 $ cat $TESTTMP/status-race-lock.log
317 $ cat $TESTTMP/status-race-lock.log
362
318
363 final cleanup
319 final cleanup
General Comments 0
You need to be logged in to leave comments. Login now