##// END OF EJS Templates
test: no longer directly use the sidedata config and requirements...
marmoute -
r48001:0dedd3d0 default
parent child Browse files
Show More
@@ -51,7 +51,6 b' use git diff to see rename'
51 #if sidedata
51 #if sidedata
52 $ cat >> $HGRCPATH << EOF
52 $ cat >> $HGRCPATH << EOF
53 > [format]
53 > [format]
54 > exp-use-side-data = yes
55 > exp-use-copies-side-data-changeset = yes
54 > exp-use-copies-side-data-changeset = yes
56 > EOF
55 > EOF
57 #endif
56 #endif
@@ -59,7 +58,6 b' use git diff to see rename'
59 #if pull
58 #if pull
60 $ cat >> $HGRCPATH << EOF
59 $ cat >> $HGRCPATH << EOF
61 > [format]
60 > [format]
62 > exp-use-side-data = yes
63 > exp-use-copies-side-data-changeset = yes
61 > exp-use-copies-side-data-changeset = yes
64 > EOF
62 > EOF
65 #endif
63 #endif
@@ -67,7 +65,6 b' use git diff to see rename'
67 #if push
65 #if push
68 $ cat >> $HGRCPATH << EOF
66 $ cat >> $HGRCPATH << EOF
69 > [format]
67 > [format]
70 > exp-use-side-data = yes
71 > exp-use-copies-side-data-changeset = yes
68 > exp-use-copies-side-data-changeset = yes
72 > EOF
69 > EOF
73 #endif
70 #endif
@@ -75,7 +72,6 b' use git diff to see rename'
75 #if pull-upgrade
72 #if pull-upgrade
76 $ cat >> $HGRCPATH << EOF
73 $ cat >> $HGRCPATH << EOF
77 > [format]
74 > [format]
78 > exp-use-side-data = no
79 > exp-use-copies-side-data-changeset = no
75 > exp-use-copies-side-data-changeset = no
80 > [experimental]
76 > [experimental]
81 > changegroup4 = yes
77 > changegroup4 = yes
@@ -85,7 +81,6 b' use git diff to see rename'
85 #if push-upgrade
81 #if push-upgrade
86 $ cat >> $HGRCPATH << EOF
82 $ cat >> $HGRCPATH << EOF
87 > [format]
83 > [format]
88 > exp-use-side-data = no
89 > exp-use-copies-side-data-changeset = no
84 > exp-use-copies-side-data-changeset = no
90 > [experimental]
85 > [experimental]
91 > changegroup4 = yes
86 > changegroup4 = yes
@@ -1652,7 +1647,6 b' We upgrade a repository that is not usin'
1652 #if upgraded
1647 #if upgraded
1653 $ cat >> $HGRCPATH << EOF
1648 $ cat >> $HGRCPATH << EOF
1654 > [format]
1649 > [format]
1655 > exp-use-side-data = yes
1656 > exp-use-copies-side-data-changeset = yes
1650 > exp-use-copies-side-data-changeset = yes
1657 > EOF
1651 > EOF
1658 $ hg debugformat -v
1652 $ hg debugformat -v
@@ -1687,7 +1681,6 b' We upgrade a repository that is not usin'
1687 #if upgraded-parallel
1681 #if upgraded-parallel
1688 $ cat >> $HGRCPATH << EOF
1682 $ cat >> $HGRCPATH << EOF
1689 > [format]
1683 > [format]
1690 > exp-use-side-data = yes
1691 > exp-use-copies-side-data-changeset = yes
1684 > exp-use-copies-side-data-changeset = yes
1692 > [experimental]
1685 > [experimental]
1693 > worker.repository-upgrade=yes
1686 > worker.repository-upgrade=yes
@@ -1743,7 +1736,6 b' We upgrade a repository that is not usin'
1743 #if pull-upgrade
1736 #if pull-upgrade
1744 $ cat >> $HGRCPATH << EOF
1737 $ cat >> $HGRCPATH << EOF
1745 > [format]
1738 > [format]
1746 > exp-use-side-data = yes
1747 > exp-use-copies-side-data-changeset = yes
1739 > exp-use-copies-side-data-changeset = yes
1748 > [experimental]
1740 > [experimental]
1749 > changegroup4 = yes
1741 > changegroup4 = yes
@@ -1781,7 +1773,6 b' We upgrade a repository that is not usin'
1781 #if push-upgrade
1773 #if push-upgrade
1782 $ cat >> $HGRCPATH << EOF
1774 $ cat >> $HGRCPATH << EOF
1783 > [format]
1775 > [format]
1784 > exp-use-side-data = yes
1785 > exp-use-copies-side-data-changeset = yes
1776 > exp-use-copies-side-data-changeset = yes
1786 > [experimental]
1777 > [experimental]
1787 > changegroup4 = yes
1778 > changegroup4 = yes
@@ -445,8 +445,9 b' downgrading'
445 $ hg debugsidedata -m -- 0
445 $ hg debugsidedata -m -- 0
446 $ cat << EOF > .hg/hgrc
446 $ cat << EOF > .hg/hgrc
447 > [format]
447 > [format]
448 > exp-use-side-data = yes
449 > exp-use-copies-side-data-changeset = no
448 > exp-use-copies-side-data-changeset = no
449 > [experimental]
450 > revlogv2 = enable-unstable-format-and-corrupt-my-data
450 > EOF
451 > EOF
451 $ hg debugupgraderepo --run --quiet --no-backup > /dev/null
452 $ hg debugupgraderepo --run --quiet --no-backup > /dev/null
452 $ hg debugformat -v
453 $ hg debugformat -v
@@ -8,12 +8,12 b' Check simple exchange behavior'
8 Pusher and pushed have sidedata enabled
8 Pusher and pushed have sidedata enabled
9 ---------------------------------------
9 ---------------------------------------
10
10
11 $ hg init sidedata-source --config format.exp-use-side-data=yes
11 $ hg init sidedata-source --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
12 $ cat << EOF >> sidedata-source/.hg/hgrc
12 $ cat << EOF >> sidedata-source/.hg/hgrc
13 > [extensions]
13 > [extensions]
14 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
14 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
15 > EOF
15 > EOF
16 $ hg init sidedata-target --config format.exp-use-side-data=yes
16 $ hg init sidedata-target --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
17 $ cat << EOF >> sidedata-target/.hg/hgrc
17 $ cat << EOF >> sidedata-target/.hg/hgrc
18 > [extensions]
18 > [extensions]
19 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
19 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
@@ -71,12 +71,12 b' Puller and pulled have sidedata enabled'
71 ---------------------------------------
71 ---------------------------------------
72
72
73 $ rm -rf sidedata-source sidedata-target
73 $ rm -rf sidedata-source sidedata-target
74 $ hg init sidedata-source --config format.exp-use-side-data=yes
74 $ hg init sidedata-source --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
75 $ cat << EOF >> sidedata-source/.hg/hgrc
75 $ cat << EOF >> sidedata-source/.hg/hgrc
76 > [extensions]
76 > [extensions]
77 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
77 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
78 > EOF
78 > EOF
79 $ hg init sidedata-target --config format.exp-use-side-data=yes
79 $ hg init sidedata-target --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
80 $ cat << EOF >> sidedata-target/.hg/hgrc
80 $ cat << EOF >> sidedata-target/.hg/hgrc
81 > [extensions]
81 > [extensions]
82 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
82 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
@@ -138,12 +138,12 b' Pusher has sidedata enabled, pushed does'
138 --------------------------------------------
138 --------------------------------------------
139
139
140 $ rm -rf sidedata-source sidedata-target
140 $ rm -rf sidedata-source sidedata-target
141 $ hg init sidedata-source --config format.exp-use-side-data=yes
141 $ hg init sidedata-source --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
142 $ cat << EOF >> sidedata-source/.hg/hgrc
142 $ cat << EOF >> sidedata-source/.hg/hgrc
143 > [extensions]
143 > [extensions]
144 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
144 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
145 > EOF
145 > EOF
146 $ hg init sidedata-target --config format.exp-use-side-data=no
146 $ hg init sidedata-target --config experimental.revlogv2=no
147 $ cd sidedata-source
147 $ cd sidedata-source
148 $ echo a > a
148 $ echo a > a
149 $ echo b > b
149 $ echo b > b
@@ -186,12 +186,12 b' Pulled has sidedata enabled, puller does'
186 --------------------------------------------
186 --------------------------------------------
187
187
188 $ rm -rf sidedata-source sidedata-target
188 $ rm -rf sidedata-source sidedata-target
189 $ hg init sidedata-source --config format.exp-use-side-data=yes
189 $ hg init sidedata-source --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
190 $ cat << EOF >> sidedata-source/.hg/hgrc
190 $ cat << EOF >> sidedata-source/.hg/hgrc
191 > [extensions]
191 > [extensions]
192 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
192 > testsidedata=$TESTDIR/testlib/ext-sidedata-5.py
193 > EOF
193 > EOF
194 $ hg init sidedata-target --config format.exp-use-side-data=no
194 $ hg init sidedata-target --config experimental.revlogv2=no
195 $ cd sidedata-source
195 $ cd sidedata-source
196 $ echo a > a
196 $ echo a > a
197 $ echo b > b
197 $ echo b > b
@@ -239,8 +239,8 b' Check sidedata exchange with on-the-fly '
239 (Push) Target has strict superset of the source
239 (Push) Target has strict superset of the source
240 -----------------------------------------------
240 -----------------------------------------------
241
241
242 $ hg init source-repo --config format.exp-use-side-data=yes
242 $ hg init source-repo --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
243 $ hg init target-repo --config format.exp-use-side-data=yes
243 $ hg init target-repo --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
244 $ cat << EOF >> target-repo/.hg/hgrc
244 $ cat << EOF >> target-repo/.hg/hgrc
245 > [extensions]
245 > [extensions]
246 > testsidedata=$TESTDIR/testlib/ext-sidedata.py
246 > testsidedata=$TESTDIR/testlib/ext-sidedata.py
@@ -311,12 +311,12 b' Source has one in common, one missing an'
311 target.
311 target.
312
312
313 $ rm -rf source-repo target-repo
313 $ rm -rf source-repo target-repo
314 $ hg init source-repo --config format.exp-use-side-data=yes
314 $ hg init source-repo --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
315 $ cat << EOF >> source-repo/.hg/hgrc
315 $ cat << EOF >> source-repo/.hg/hgrc
316 > [extensions]
316 > [extensions]
317 > testsidedata3=$TESTDIR/testlib/ext-sidedata-3.py
317 > testsidedata3=$TESTDIR/testlib/ext-sidedata-3.py
318 > EOF
318 > EOF
319 $ hg init target-repo --config format.exp-use-side-data=yes
319 $ hg init target-repo --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
320 $ cat << EOF >> target-repo/.hg/hgrc
320 $ cat << EOF >> target-repo/.hg/hgrc
321 > [extensions]
321 > [extensions]
322 > testsidedata4=$TESTDIR/testlib/ext-sidedata-4.py
322 > testsidedata4=$TESTDIR/testlib/ext-sidedata-4.py
@@ -412,8 +412,8 b' but not entry-0001.'
412 -----------------------------------------------
412 -----------------------------------------------
413
413
414 $ rm -rf source-repo target-repo
414 $ rm -rf source-repo target-repo
415 $ hg init source-repo --config format.exp-use-side-data=yes
415 $ hg init source-repo --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
416 $ hg init target-repo --config format.exp-use-side-data=yes
416 $ hg init target-repo --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
417 $ cat << EOF >> target-repo/.hg/hgrc
417 $ cat << EOF >> target-repo/.hg/hgrc
418 > [extensions]
418 > [extensions]
419 > testsidedata=$TESTDIR/testlib/ext-sidedata.py
419 > testsidedata=$TESTDIR/testlib/ext-sidedata.py
@@ -10,7 +10,7 b' Check data can be written/read from side'
10 > testsidedata=$TESTDIR/testlib/ext-sidedata.py
10 > testsidedata=$TESTDIR/testlib/ext-sidedata.py
11 > EOF
11 > EOF
12
12
13 $ hg init test-sidedata --config format.exp-use-side-data=yes
13 $ hg init test-sidedata --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
14 $ cd test-sidedata
14 $ cd test-sidedata
15 $ echo aaa > a
15 $ echo aaa > a
16 $ hg add a
16 $ hg add a
@@ -48,7 +48,7 b' Right now, sidedata has not upgrade supp'
48 Check that we can upgrade to sidedata
48 Check that we can upgrade to sidedata
49 -------------------------------------
49 -------------------------------------
50
50
51 $ hg init up-no-side-data --config format.exp-use-side-data=no
51 $ hg init up-no-side-data --config experimental.revlogv2=no
52 $ hg debugformat -v -R up-no-side-data
52 $ hg debugformat -v -R up-no-side-data
53 format-variant repo config default
53 format-variant repo config default
54 fncache: yes yes yes
54 fncache: yes yes yes
@@ -64,7 +64,7 b' Check that we can upgrade to sidedata'
64 compression: zlib zlib zlib (no-zstd !)
64 compression: zlib zlib zlib (no-zstd !)
65 compression: zstd zstd zstd (zstd !)
65 compression: zstd zstd zstd (zstd !)
66 compression-level: default default default
66 compression-level: default default default
67 $ hg debugformat -v -R up-no-side-data --config format.exp-use-side-data=yes
67 $ hg debugformat -v -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
68 format-variant repo config default
68 format-variant repo config default
69 fncache: yes yes yes
69 fncache: yes yes yes
70 dotencode: yes yes yes
70 dotencode: yes yes yes
@@ -79,12 +79,12 b' Check that we can upgrade to sidedata'
79 compression: zlib zlib zlib (no-zstd !)
79 compression: zlib zlib zlib (no-zstd !)
80 compression: zstd zstd zstd (zstd !)
80 compression: zstd zstd zstd (zstd !)
81 compression-level: default default default
81 compression-level: default default default
82 $ hg debugupgraderepo -R up-no-side-data --config format.exp-use-side-data=yes > /dev/null
82 $ hg debugupgraderepo -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data > /dev/null
83
83
84 Check that we can downgrade from sidedata
84 Check that we can downgrade from sidedata
85 -----------------------------------------
85 -----------------------------------------
86
86
87 $ hg init up-side-data --config format.exp-use-side-data=yes
87 $ hg init up-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
88 $ hg debugformat -v -R up-side-data
88 $ hg debugformat -v -R up-side-data
89 format-variant repo config default
89 format-variant repo config default
90 fncache: yes yes yes
90 fncache: yes yes yes
@@ -100,7 +100,7 b' Check that we can downgrade from sidedat'
100 compression: zlib zlib zlib (no-zstd !)
100 compression: zlib zlib zlib (no-zstd !)
101 compression: zstd zstd zstd (zstd !)
101 compression: zstd zstd zstd (zstd !)
102 compression-level: default default default
102 compression-level: default default default
103 $ hg debugformat -v -R up-side-data --config format.exp-use-side-data=no
103 $ hg debugformat -v -R up-side-data --config experimental.revlogv2=no
104 format-variant repo config default
104 format-variant repo config default
105 fncache: yes yes yes
105 fncache: yes yes yes
106 dotencode: yes yes yes
106 dotencode: yes yes yes
@@ -115,4 +115,4 b' Check that we can downgrade from sidedat'
115 compression: zlib zlib zlib (no-zstd !)
115 compression: zlib zlib zlib (no-zstd !)
116 compression: zstd zstd zstd (zstd !)
116 compression: zstd zstd zstd (zstd !)
117 compression-level: default default default
117 compression-level: default default default
118 $ hg debugupgraderepo -R up-side-data --config format.exp-use-side-data=no > /dev/null
118 $ hg debugupgraderepo -R up-side-data --config experimental.revlogv2=no > /dev/null
@@ -1448,13 +1448,13 b' upgrade from hgrc'
1448
1448
1449 #endif
1449 #endif
1450
1450
1451 Check upgrading to a side-data revlog
1451 Check upgrading to a revlog format supporting sidedata
1452 -------------------------------------
1452 ------------------------------------------------------
1453
1453
1454 upgrade
1454 upgrade
1455
1455
1456 $ hg debugsidedata -c 0
1456 $ hg debugsidedata -c 0
1457 $ hg --config format.exp-use-side-data=yes debugupgraderepo --run --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" --quiet
1457 $ hg --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data debugupgraderepo --run --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" --quiet
1458 upgrade will perform the following actions:
1458 upgrade will perform the following actions:
1459
1459
1460 requirements
1460 requirements
@@ -1462,8 +1462,8 b' upgrade'
1462 preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, sparserevlog, store (zstd no-rust !)
1462 preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, sparserevlog, store (zstd no-rust !)
1463 preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store (rust !)
1463 preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store (rust !)
1464 removed: revlogv1
1464 removed: revlogv1
1465 added: exp-revlogv2.2, exp-sidedata-flag (zstd !)
1465 added: exp-revlogv2.2 (zstd !)
1466 added: exp-revlogv2.2, exp-sidedata-flag, sparserevlog (no-zstd !)
1466 added: exp-revlogv2.2, sparserevlog (no-zstd !)
1467
1467
1468 processed revlogs:
1468 processed revlogs:
1469 - all-filelogs
1469 - all-filelogs
@@ -1488,7 +1488,6 b' upgrade'
1488 $ cat .hg/requires
1488 $ cat .hg/requires
1489 dotencode
1489 dotencode
1490 exp-revlogv2.2
1490 exp-revlogv2.2
1491 exp-sidedata-flag
1492 fncache
1491 fncache
1493 generaldelta
1492 generaldelta
1494 persistent-nodemap (rust !)
1493 persistent-nodemap (rust !)
@@ -1502,14 +1501,14 b' upgrade'
1502
1501
1503 downgrade
1502 downgrade
1504
1503
1505 $ hg debugupgraderepo --config format.exp-use-side-data=no --run --no-backup --quiet
1504 $ hg debugupgraderepo --config experimental.revlogv2=no --run --no-backup --quiet
1506 upgrade will perform the following actions:
1505 upgrade will perform the following actions:
1507
1506
1508 requirements
1507 requirements
1509 preserved: dotencode, fncache, generaldelta, sparserevlog, store (no-zstd !)
1508 preserved: dotencode, fncache, generaldelta, sparserevlog, store (no-zstd !)
1510 preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, sparserevlog, store (zstd no-rust !)
1509 preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, sparserevlog, store (zstd no-rust !)
1511 preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store (rust !)
1510 preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store (rust !)
1512 removed: exp-revlogv2.2, exp-sidedata-flag
1511 removed: exp-revlogv2.2
1513 added: revlogv1
1512 added: revlogv1
1514
1513
1515 processed revlogs:
1514 processed revlogs:
@@ -1546,8 +1545,8 b' downgrade'
1546 upgrade from hgrc
1545 upgrade from hgrc
1547
1546
1548 $ cat >> .hg/hgrc << EOF
1547 $ cat >> .hg/hgrc << EOF
1549 > [format]
1548 > [experimental]
1550 > exp-use-side-data=yes
1549 > revlogv2=enable-unstable-format-and-corrupt-my-data
1551 > EOF
1550 > EOF
1552 $ hg debugupgraderepo --run --no-backup --quiet
1551 $ hg debugupgraderepo --run --no-backup --quiet
1553 upgrade will perform the following actions:
1552 upgrade will perform the following actions:
@@ -1557,7 +1556,7 b' upgrade from hgrc'
1557 preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, sparserevlog, store (zstd no-rust !)
1556 preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, sparserevlog, store (zstd no-rust !)
1558 preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store (rust !)
1557 preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, sparserevlog, store (rust !)
1559 removed: revlogv1
1558 removed: revlogv1
1560 added: exp-revlogv2.2, exp-sidedata-flag
1559 added: exp-revlogv2.2
1561
1560
1562 processed revlogs:
1561 processed revlogs:
1563 - all-filelogs
1562 - all-filelogs
@@ -1582,7 +1581,6 b' upgrade from hgrc'
1582 $ cat .hg/requires
1581 $ cat .hg/requires
1583 dotencode
1582 dotencode
1584 exp-revlogv2.2
1583 exp-revlogv2.2
1585 exp-sidedata-flag
1586 fncache
1584 fncache
1587 generaldelta
1585 generaldelta
1588 persistent-nodemap (rust !)
1586 persistent-nodemap (rust !)
General Comments 0
You need to be logged in to leave comments. Login now