Mercurial > evolve
annotate tests/test-evolve-issue6246.t @ 6337:58115cf37211 stable
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
It will fall back to memory db when there are problems opening the persistent
cache file.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 01 Dec 2022 16:29:56 +0400 |
parents | |
children | a55b9b917a08 |
rev | line source |
---|---|
6337
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
1 Failure to open evoext_stablerange_v2.sqlite shouldn't affect operations (issue6246) |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
2 https://bz.mercurial-scm.org/show_bug.cgi?id=6246 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
3 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
4 $ . $TESTDIR/testlib/common.sh |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
5 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
6 $ cat << EOF >> $HGRCPATH |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
7 > [extensions] |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
8 > evolve = |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
9 > EOF |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
10 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
11 $ hg init issue6246 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
12 $ cd issue6246 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
13 $ hg debugbuilddag '.+6' |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
14 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
15 making a cache file that sqlite cannot open shouldn't break stablerange cache |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
16 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
17 $ touch .hg/cache/evoext_stablerange_v2.sqlite |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
18 $ chmod 0000 .hg/cache/evoext_stablerange_v2.sqlite |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
19 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
20 $ hg debugstablerange --method default --verify --subranges --rev 1 --debug |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
21 stable-range cache: unable to load, regenerating |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
22 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
23 1ea73414a91b-0 (0, 1, 1) [leaf] - |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
24 66f7d451a68b-1 (1, 2, 1) [leaf] - |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
25 |
58115cf37211
evolve: make sqlstablerange slightly more tolerant to fs issues (issue6246)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff
changeset
|
26 $ cd .. |