comparison tests/test-discovery-obshashrange-cache.t @ 5866:5931ad39ea37 stable

evolve: make stablesortcache.save/load use struct.unpack/pack (issue6354) arraytobytes() and arrayfrombytes() is not cross-platform.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 31 Mar 2021 20:39:37 +0800
parents d7ed88810457
children 1b6dfac6b17e
comparison
equal deleted inserted replaced
5865:d7ed88810457 5866:5931ad39ea37
334 334
335 $ hg -R main debugstablesortcache --debug 335 $ hg -R main debugstablesortcache --debug
336 number of revisions: 8 336 number of revisions: 8
337 number of merge: 0 337 number of merge: 0
338 number of jumps: 0 338 number of jumps: 0
339
340 $ "$PYTHON" truncate.py main/.hg/cache/evoext-stablesortcache-00 -4
341 $ f -H main/.hg/cache/evoext-stablesortcache-00
342 main/.hg/cache/evoext-stablesortcache-00:
343 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......|
344 0010: 41 27 7a a7 ab ca 51 dd 00 00 00 40 00 00 00 00 |A'z...Q....@....|
345 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
346 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
347 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
348 0050: 00 00 00 00 00 00 00 00 |........|
349
350 $ hg -R main debugstablesortcache --debug
351 number of revisions: 8
352 stablesortcache file seems to be corrupted, it will be rebuilt from scratch
353 number of merge: 0
354 number of jumps: 0