annotate tests/test-cache-corruption.t @ 6854:03fe10eb9f2d stable

tests: update test-check-commit.t with changes from the upstream version
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 13 Oct 2024 18:07:22 +0400
parents 38f6e7c0a743
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 Testing cache corruption and recovery
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
2 https://bz.mercurial-scm.org/show_bug.cgi?id=6354
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
4 $ . $TESTDIR/testlib/pythonpath.sh
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
6 $ cat << EOF >> $HGRCPATH
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7 > [extensions]
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
8 > evolve =
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 > [experimental]
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10 > obshashrange = 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
11 > obshashrange.warm-cache = yes
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
12 > [ui]
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
13 > logtemplate = "{rev} {node|short} {desc} {tags}\n"
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
14 > EOF
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
15
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
16 $ cat >> repack.py << EOF
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
17 > import struct
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
18 > import sys
5870
5435777c307c tests: clarify what repack.py is doing in test-cache-corruption.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5868
diff changeset
19 > # imitating array.array().tobytes() with a platform-dependent item size
5435777c307c tests: clarify what repack.py is doing in test-cache-corruption.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5868
diff changeset
20 > sixtyfour = struct.Struct('<q') # as seen on 64-bit platforms
5435777c307c tests: clarify what repack.py is doing in test-cache-corruption.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5868
diff changeset
21 > thirtytwo = struct.Struct('<l') # as seen on 32-bit platforms
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
22 > iss = struct.Struct('<I') # for rewriting indexsize of stablesortcache
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
23 > data = []
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
24 > with open(sys.argv[1], 'rb') as f:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
25 > header = f.read(24)
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
26 > if '--index' in sys.argv:
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
27 > indexsize = iss.unpack(f.read(iss.size))[0]
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
28 > while True:
5870
5435777c307c tests: clarify what repack.py is doing in test-cache-corruption.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5868
diff changeset
29 > buf = f.read(sixtyfour.size)
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
30 > if not buf: break
5870
5435777c307c tests: clarify what repack.py is doing in test-cache-corruption.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5868
diff changeset
31 > data.append(sixtyfour.unpack(buf)[0])
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
32 > with open(sys.argv[1], 'wb') as f:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
33 > f.write(header)
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
34 > if '--index' in sys.argv:
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
35 > indexsize = int(indexsize * thirtytwo.size / sixtyfour.size)
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
36 > f.write(iss.pack(indexsize))
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
37 > for item in data:
5870
5435777c307c tests: clarify what repack.py is doing in test-cache-corruption.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5868
diff changeset
38 > f.write(thirtytwo.pack(item))
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
39 > EOF
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
40
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
41 $ cat >> truncate.py << EOF
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
42 > import os
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
43 > import sys
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
44 > with open(sys.argv[1], 'ab') as fp:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
45 > fp.seek(int(sys.argv[2]), os.SEEK_END)
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
46 > fp.truncate()
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
47 > EOF
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
48
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
49 Simple linear setup
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
50
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
51 $ hg init linear
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
52 $ cd linear
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
53
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
54 $ hg debugbuilddag '+3'
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
55 $ hg log -G
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
56 o 2 01241442b3c2 r2 tip
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
57 |
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
58 o 1 66f7d451a68b r1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
59 |
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
60 o 0 1ea73414a91b r0
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
61
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
62 $ f -s .hg/cache/evoext-*
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
63 .hg/cache/evoext-depthcache-00: size=48
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
64 .hg/cache/evoext-firstmerge-00: size=48
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
65 .hg/cache/evoext-obscache-00: size=67
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
66 .hg/cache/evoext-stablesortcache-00: size=52
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
67
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
68 testing depthcache
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
69
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
70 $ f -H .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
71 .hg/cache/evoext-depthcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
72 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
73 0010: 49 c6 55 ea 65 b2 95 e3 01 00 00 00 00 00 00 00 |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
74 0020: 02 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
75
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
76 $ hg debugdepth --rev 'all()' --method compare --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
77 1ea73414a91b 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
78 66f7d451a68b 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
79 01241442b3c2 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
80
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
81 $ "$PYTHON" ../repack.py .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
82 $ f -H .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
83 .hg/cache/evoext-depthcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
84 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
85 0010: 49 c6 55 ea 65 b2 95 e3 01 00 00 00 02 00 00 00 |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
86 0020: 03 00 00 00 |....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
87
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
88 $ hg debugdepth --rev 'all()' --method compare --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
89 depthcache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
90 1ea73414a91b 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
91 66f7d451a68b 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
92 01241442b3c2 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
93
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
94 $ "$PYTHON" ../truncate.py .hg/cache/evoext-depthcache-00 -4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
95 $ f -H .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
96 .hg/cache/evoext-depthcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
97 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
98 0010: 49 c6 55 ea 65 b2 95 e3 01 00 00 00 00 00 00 00 |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
99 0020: 02 00 00 00 00 00 00 00 03 00 00 00 |............|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
100
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
101 $ hg debugdepth --rev 'all()' --method compare --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
102 depthcache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
103 1ea73414a91b 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
104 66f7d451a68b 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
105 01241442b3c2 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
106
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
107 testing firstmergecache
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
108
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
109 $ f -H .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
110 .hg/cache/evoext-firstmerge-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
111 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
112 0010: 49 c6 55 ea 65 b2 95 e3 ff ff ff ff ff ff ff ff |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
113 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
114
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
115 $ hg debugfirstmergecache --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
116 1ea73414a91b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
117 66f7d451a68b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
118 01241442b3c2 -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
119
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
120 $ "$PYTHON" ../repack.py .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
121 $ f -H .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
122 .hg/cache/evoext-firstmerge-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
123 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
124 0010: 49 c6 55 ea 65 b2 95 e3 ff ff ff ff ff ff ff ff |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
125 0020: ff ff ff ff |....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
126
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
127 $ hg debugfirstmergecache --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
128 firstmergecache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
129 1ea73414a91b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
130 66f7d451a68b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
131 01241442b3c2 -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
132
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
133 $ "$PYTHON" ../truncate.py .hg/cache/evoext-firstmerge-00 -4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
134 $ f -H .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
135 .hg/cache/evoext-firstmerge-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
136 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
137 0010: 49 c6 55 ea 65 b2 95 e3 ff ff ff ff ff ff ff ff |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
138 0020: ff ff ff ff ff ff ff ff ff ff ff ff |............|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
139
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
140 $ hg debugfirstmergecache --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
141 firstmergecache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
142 1ea73414a91b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
143 66f7d451a68b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
144 01241442b3c2 -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
145
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
146 testing stablesortcache
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
147
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
148 $ f -H .hg/cache/evoext-stablesortcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
149 .hg/cache/evoext-stablesortcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
150 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
151 0010: 49 c6 55 ea 65 b2 95 e3 00 00 00 18 00 00 00 00 |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
152 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
153 0030: 00 00 00 00 |....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
154
6481
38f6e7c0a743 stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 5872
diff changeset
155 $ hg debug::evo-ext-stable-sort-cache --debug
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
156 number of revisions: 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
157 number of merge: 0
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
158 number of jumps: 0
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
159
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
160 $ "$PYTHON" ../repack.py .hg/cache/evoext-stablesortcache-00 --index
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
161 $ f -H .hg/cache/evoext-stablesortcache-00
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
162 .hg/cache/evoext-stablesortcache-00:
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
163 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
164 0010: 49 c6 55 ea 65 b2 95 e3 00 00 00 0c 00 00 00 00 |I.U.e...........|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
165 0020: 00 00 00 00 00 00 00 00 |........|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
166
6481
38f6e7c0a743 stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 5872
diff changeset
167 $ hg debug::evo-ext-stable-sort-cache --debug
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
168 number of revisions: 3
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
169 stablesortcache file seems to be corrupted, it will be rebuilt from scratch
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
170 number of merge: 0
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
171 number of jumps: 0
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
172
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
173 $ "$PYTHON" ../truncate.py .hg/cache/evoext-stablesortcache-00 -4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
174 $ f -H .hg/cache/evoext-stablesortcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
175 .hg/cache/evoext-stablesortcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
176 0000: 00 00 00 02 01 24 14 42 b3 c2 bf 32 11 e5 93 b5 |.....$.B...2....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
177 0010: 49 c6 55 ea 65 b2 95 e3 00 00 00 18 00 00 00 00 |I.U.e...........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
178 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
179
6481
38f6e7c0a743 stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 5872
diff changeset
180 $ hg debug::evo-ext-stable-sort-cache --debug
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
181 number of revisions: 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
182 stablesortcache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
183 number of merge: 0
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
184 number of jumps: 0
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
185
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
186 $ cd ..
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
187
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
188 A "diamond" setup with a merge
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
189
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
190 $ hg init with-a-merge
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
191 $ cd with-a-merge
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
192
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
193 $ hg debugbuilddag '+2 *2 /2'
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
194 $ hg log -G
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
195 o 3 2b6d669947cd r3 tip
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
196 |\
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
197 | o 2 fa942426a6fd r2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
198 | |
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
199 o | 1 66f7d451a68b r1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
200 |/
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
201 o 0 1ea73414a91b r0
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
202
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
203 $ f -s .hg/cache/evoext-*
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
204 .hg/cache/evoext-depthcache-00: size=56
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
205 .hg/cache/evoext-firstmerge-00: size=56
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
206 .hg/cache/evoext-obscache-00: size=68
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
207 .hg/cache/evoext-stablesortcache-00: size=84
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
208
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
209 testing depthcache
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
210
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
211 $ f -H .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
212 .hg/cache/evoext-depthcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
213 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
214 0010: 11 c7 84 85 89 70 7e ef 01 00 00 00 00 00 00 00 |.....p~.........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
215 0020: 02 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
216 0030: 04 00 00 00 00 00 00 00 |........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
217
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
218 $ hg debugdepth --rev 'all()' --method compare --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
219 1ea73414a91b 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
220 66f7d451a68b 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
221 fa942426a6fd 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
222 2b6d669947cd 4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
223
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
224 $ "$PYTHON" ../repack.py .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
225 $ f -H .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
226 .hg/cache/evoext-depthcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
227 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
228 0010: 11 c7 84 85 89 70 7e ef 01 00 00 00 02 00 00 00 |.....p~.........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
229 0020: 02 00 00 00 04 00 00 00 |........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
230
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
231 $ hg debugdepth --rev 'all()' --method compare --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
232 depthcache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
233 1ea73414a91b 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
234 66f7d451a68b 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
235 fa942426a6fd 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
236 2b6d669947cd 4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
237
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
238 $ "$PYTHON" ../truncate.py .hg/cache/evoext-depthcache-00 -4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
239 $ f -H .hg/cache/evoext-depthcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
240 .hg/cache/evoext-depthcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
241 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
242 0010: 11 c7 84 85 89 70 7e ef 01 00 00 00 00 00 00 00 |.....p~.........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
243 0020: 02 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
244 0030: 04 00 00 00 |....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
245
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
246 $ hg debugdepth --rev 'all()' --method compare --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
247 depthcache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
248 1ea73414a91b 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
249 66f7d451a68b 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
250 fa942426a6fd 2
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
251 2b6d669947cd 4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
252
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
253 testing firstmergecache
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
254
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
255 $ f -H .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
256 .hg/cache/evoext-firstmerge-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
257 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
258 0010: 11 c7 84 85 89 70 7e ef ff ff ff ff ff ff ff ff |.....p~.........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
259 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
260 0030: 03 00 00 00 00 00 00 00 |........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
261
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
262 $ hg debugfirstmergecache --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
263 1ea73414a91b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
264 66f7d451a68b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
265 fa942426a6fd -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
266 2b6d669947cd 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
267
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
268 $ "$PYTHON" ../repack.py .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
269 $ f -H .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
270 .hg/cache/evoext-firstmerge-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
271 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
272 0010: 11 c7 84 85 89 70 7e ef ff ff ff ff ff ff ff ff |.....p~.........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
273 0020: ff ff ff ff 03 00 00 00 |........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
274
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
275 $ hg debugfirstmergecache --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
276 firstmergecache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
277 1ea73414a91b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
278 66f7d451a68b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
279 fa942426a6fd -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
280 2b6d669947cd 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
281
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
282 $ "$PYTHON" ../truncate.py .hg/cache/evoext-firstmerge-00 -4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
283 $ f -H .hg/cache/evoext-firstmerge-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
284 .hg/cache/evoext-firstmerge-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
285 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
286 0010: 11 c7 84 85 89 70 7e ef ff ff ff ff ff ff ff ff |.....p~.........|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
287 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
288 0030: 03 00 00 00 |....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
289
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
290 $ hg debugfirstmergecache --debug
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
291 firstmergecache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
292 1ea73414a91b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
293 66f7d451a68b -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
294 fa942426a6fd -1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
295 2b6d669947cd 3
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
296
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
297 testing stablesortcache
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
298
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
299 $ f -H .hg/cache/evoext-stablesortcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
300 .hg/cache/evoext-stablesortcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
301 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
302 0010: 11 c7 84 85 89 70 7e ef 00 00 00 20 00 00 00 00 |.....p~.... ....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
303 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
304 0030: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
305 0040: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
306 0050: 00 00 00 00 |....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
307
6481
38f6e7c0a743 stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 5872
diff changeset
308 $ hg debug::evo-ext-stable-sort-cache --debug
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
309 number of revisions: 4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
310 number of merge: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
311 number of jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
312 average jumps: 1.000
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
313 median jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
314 90% jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
315 99% jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
316 max jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
317 jump cache size: 12 bytes
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
318
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
319 $ "$PYTHON" ../repack.py .hg/cache/evoext-stablesortcache-00 --index
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
320 $ f -H .hg/cache/evoext-stablesortcache-00
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
321 .hg/cache/evoext-stablesortcache-00:
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
322 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
323 0010: 11 c7 84 85 89 70 7e ef 00 00 00 10 00 00 00 00 |.....p~.........|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
324 0020: 00 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 |................|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
325 0030: 01 00 00 00 02 00 00 00 |........|
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
326
6481
38f6e7c0a743 stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 5872
diff changeset
327 $ hg debug::evo-ext-stable-sort-cache --debug
5872
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
328 number of revisions: 4
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
329 stablesortcache file seems to be corrupted, it will be rebuilt from scratch
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
330 number of merge: 1
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
331 number of jumps: 1
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
332 average jumps: 1.000
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
333 median jumps: 1
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
334 90% jumps: 1
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
335 99% jumps: 1
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
336 max jumps: 1
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
337 jump cache size: 12 bytes
bdda94ea2195 evolve: check stablesortcache index size before unpacking (issue6354)
Anton Shestakov <av6@dwimlabs.net>
parents: 5870
diff changeset
338
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
339 $ "$PYTHON" ../truncate.py .hg/cache/evoext-stablesortcache-00 -4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
340 $ f -H .hg/cache/evoext-stablesortcache-00
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
341 .hg/cache/evoext-stablesortcache-00:
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
342 0000: 00 00 00 03 2b 6d 66 99 47 cd 52 4d 74 f4 3c 1b |....+mf.G.RMt.<.|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
343 0010: 11 c7 84 85 89 70 7e ef 00 00 00 20 00 00 00 00 |.....p~.... ....|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
344 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
345 0030: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
346 0040: 00 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 |................|
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
347
6481
38f6e7c0a743 stable-sort: rename `debugstablesort` into `debug::evo-ext-stable-sort`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 5872
diff changeset
348 $ hg debug::evo-ext-stable-sort-cache --debug
5868
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
349 number of revisions: 4
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
350 stablesortcache file seems to be corrupted, it will be rebuilt from scratch
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
351 number of merge: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
352 number of jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
353 average jumps: 1.000
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
354 median jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
355 90% jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
356 99% jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
357 max jumps: 1
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
358 jump cache size: 12 bytes
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
359
c61e1577c62f tests: add a separate test file to test cache corruption and recovery
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
360 $ cd ..