##// 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 167 return fp
168 168
169 169 def _readdirstatefile(self, size: int = -1) -> bytes:
170 testing.wait_on_cfg(self._ui, b'dirstate.pre-read-file')
170 171 try:
171 172 with self._opendirstatefile() as fp:
172 173 return fp.read(size)
@@ -176,6 +177,7 class _dirstatemapcommon:
176 177
177 178 @property
178 179 def docket(self) -> "docketmod.DirstateDocket":
180 testing.wait_on_cfg(self._ui, b'dirstate.pre-read-file')
179 181 if not self._docket:
180 182 if not self._use_dirstate_v2:
181 183 raise error.ProgrammingError(
@@ -167,23 +167,7 The file should in a "added" state
167 167
168 168 The status process should return a consistent result and not crash.
169 169
170 #if dirstate-v1
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
170 #if rust dirstate-v2-append pre-some-read
187 171 $ cat $TESTTMP/status-race-lock.out
188 172 A dir/o
189 173 R dir/nested/m
@@ -198,8 +182,6 The status process should return a consi
198 182 ? p
199 183 ? q
200 184 #endif
201 #endif
202 #endif
203 185 $ cat $TESTTMP/status-race-lock.log
204 186
205 187 final cleanup
@@ -249,30 +231,19 commit was created, and status is now cl
249 231
250 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 241 $ cat $TESTTMP/status-race-lock.out
254 242 A dir/o
255 243 R dir/nested/m
256 244 ? dir/n
257 245 ? p
258 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 247 #endif
277 248
278 249 final cleanup
@@ -323,21 +294,7 do an update
323 294
324 295 The status process should return a consistent result and not crash.
325 296
326 #if rhg 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
297 #if rust dirstate-v2-append pre-some-read
341 298 $ cat $TESTTMP/status-race-lock.out
342 299 A dir/o
343 300 R dir/nested/m
@@ -357,7 +314,6 The status process should return a consi
357 314 ? p
358 315 ? q
359 316 #endif
360 #endif
361 317 $ cat $TESTTMP/status-race-lock.log
362 318
363 319 final cleanup
General Comments 0
You need to be logged in to leave comments. Login now