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