comparison tests/test-issue6528.t @ 48470:3eb3aef6d3bf

rhg: Mark it as expected that the issue6528 bug is not reproduced Differential Revision: https://phab.mercurial-scm.org/D11909
author Simon Sapin <simon.sapin@octobus.net>
date Tue, 14 Dec 2021 19:47:33 +0100
parents b7fde9237c92
children e91aa800ae5b
comparison
equal deleted inserted replaced
48469:a16eedf47843 48470:3eb3aef6d3bf
1 =============================================================== 1 ===============================================================
2 Test non-regression on the corruption associated with issue6528 2 Test non-regression on the corruption associated with issue6528
3 =============================================================== 3 ===============================================================
4
5 TODO: fix rhg bugs that make this test fail when status is enabled
6 $ unset RHG_STATUS
7
8 4
9 Setup 5 Setup
10 ===== 6 =====
11 7
12 $ hg init base-repo 8 $ hg init base-repo
189 #else 185 #else
190 $ tar xf $TESTDIR/bundles/issue6528.tar 186 $ tar xf $TESTDIR/bundles/issue6528.tar
191 #endif 187 #endif
192 188
193 Check that the issue is present 189 Check that the issue is present
194 $ hg st 190 (It is currently not present with rhg but will be when optimizations are added
195 M D.txt 191 to resolve ambiguous files at the end of status without reading their content
196 M b.txt 192 if the size differs, and reading the expected size without resolving filelog
193 deltas where possible.)
194
195 $ hg st
196 M D.txt (no-rhg !)
197 M b.txt (no-rhg !)
197 $ hg debugrevlogindex b.txt 198 $ hg debugrevlogindex b.txt
198 rev linkrev nodeid p1 p2 199 rev linkrev nodeid p1 p2
199 0 2 05b806ebe5ea 000000000000 000000000000 200 0 2 05b806ebe5ea 000000000000 000000000000
200 1 3 a58b36ad6b65 05b806ebe5ea 000000000000 201 1 3 a58b36ad6b65 05b806ebe5ea 000000000000
201 2 6 216a5fe8b8ed 000000000000 000000000000 202 2 6 216a5fe8b8ed 000000000000 000000000000
209 $ hg debug-repair-issue6528 --dry-run 210 $ hg debug-repair-issue6528 --dry-run
210 found affected revision 1 for filelog 'data/D.txt.i' 211 found affected revision 1 for filelog 'data/D.txt.i'
211 found affected revision 1 for filelog 'data/b.txt.i' 212 found affected revision 1 for filelog 'data/b.txt.i'
212 found affected revision 3 for filelog 'data/b.txt.i' 213 found affected revision 3 for filelog 'data/b.txt.i'
213 $ hg st 214 $ hg st
214 M D.txt 215 M D.txt (no-rhg !)
215 M b.txt 216 M b.txt (no-rhg !)
216 $ hg debugrevlogindex b.txt 217 $ hg debugrevlogindex b.txt
217 rev linkrev nodeid p1 p2 218 rev linkrev nodeid p1 p2
218 0 2 05b806ebe5ea 000000000000 000000000000 219 0 2 05b806ebe5ea 000000000000 000000000000
219 1 3 a58b36ad6b65 05b806ebe5ea 000000000000 220 1 3 a58b36ad6b65 05b806ebe5ea 000000000000
220 2 6 216a5fe8b8ed 000000000000 000000000000 221 2 6 216a5fe8b8ed 000000000000 000000000000
228 $ hg debug-repair-issue6528 --dry-run --paranoid 229 $ hg debug-repair-issue6528 --dry-run --paranoid
229 found affected revision 1 for filelog 'data/D.txt.i' 230 found affected revision 1 for filelog 'data/D.txt.i'
230 found affected revision 1 for filelog 'data/b.txt.i' 231 found affected revision 1 for filelog 'data/b.txt.i'
231 found affected revision 3 for filelog 'data/b.txt.i' 232 found affected revision 3 for filelog 'data/b.txt.i'
232 $ hg st 233 $ hg st
233 M D.txt 234 M D.txt (no-rhg !)
234 M b.txt 235 M b.txt (no-rhg !)
235 $ hg debugrevlogindex b.txt 236 $ hg debugrevlogindex b.txt
236 rev linkrev nodeid p1 p2 237 rev linkrev nodeid p1 p2
237 0 2 05b806ebe5ea 000000000000 000000000000 238 0 2 05b806ebe5ea 000000000000 000000000000
238 1 3 a58b36ad6b65 05b806ebe5ea 000000000000 239 1 3 a58b36ad6b65 05b806ebe5ea 000000000000
239 2 6 216a5fe8b8ed 000000000000 000000000000 240 2 6 216a5fe8b8ed 000000000000 000000000000
305 loading report file '$TESTTMP/report.txt' 306 loading report file '$TESTTMP/report.txt'
306 found affected revision 1 for filelog 'D.txt' 307 found affected revision 1 for filelog 'D.txt'
307 found affected revision 1 for filelog 'b.txt' 308 found affected revision 1 for filelog 'b.txt'
308 found affected revision 3 for filelog 'b.txt' 309 found affected revision 3 for filelog 'b.txt'
309 $ hg st 310 $ hg st
310 M D.txt 311 M D.txt (no-rhg !)
311 M b.txt 312 M b.txt (no-rhg !)
312 $ hg debugrevlogindex b.txt 313 $ hg debugrevlogindex b.txt
313 rev linkrev nodeid p1 p2 314 rev linkrev nodeid p1 p2
314 0 2 05b806ebe5ea 000000000000 000000000000 315 0 2 05b806ebe5ea 000000000000 000000000000
315 1 3 a58b36ad6b65 05b806ebe5ea 000000000000 316 1 3 a58b36ad6b65 05b806ebe5ea 000000000000
316 2 6 216a5fe8b8ed 000000000000 000000000000 317 2 6 216a5fe8b8ed 000000000000 000000000000