Show More
@@ -757,7 +757,7 b' coreconfigitem(' | |||||
757 | experimental=True, |
|
757 | experimental=True, | |
758 | ) |
|
758 | ) | |
759 | coreconfigitem( |
|
759 | coreconfigitem( | |
760 | b'format', b'use-side-data', default=False, experimental=True, |
|
760 | b'format', b'exp-use-side-data', default=False, experimental=True, | |
761 | ) |
|
761 | ) | |
762 | coreconfigitem( |
|
762 | coreconfigitem( | |
763 | b'format', b'internal-phase', default=False, experimental=True, |
|
763 | b'format', b'internal-phase', default=False, experimental=True, |
@@ -3526,8 +3526,8 b' def newreporequirements(ui, createopts):' | |||||
3526 | if ui.configbool(b'format', b'sparse-revlog'): |
|
3526 | if ui.configbool(b'format', b'sparse-revlog'): | |
3527 | requirements.add(SPARSEREVLOG_REQUIREMENT) |
|
3527 | requirements.add(SPARSEREVLOG_REQUIREMENT) | |
3528 |
|
3528 | |||
3529 | # experimental config: format.use-side-data |
|
3529 | # experimental config: format.exp-use-side-data | |
3530 | if ui.configbool(b'format', b'use-side-data'): |
|
3530 | if ui.configbool(b'format', b'exp-use-side-data'): | |
3531 | requirements.add(SIDEDATA_REQUIREMENT) |
|
3531 | requirements.add(SIDEDATA_REQUIREMENT) | |
3532 | # experimental config: format.exp-use-copies-side-data-changeset |
|
3532 | # experimental config: format.exp-use-copies-side-data-changeset | |
3533 | if ui.configbool(b'format', b'exp-use-copies-side-data-changeset'): |
|
3533 | if ui.configbool(b'format', b'exp-use-copies-side-data-changeset'): |
@@ -484,7 +484,7 b' downgrading (keeping some sidedata)' | |||||
484 | $ hg debugsidedata -m -- 0 |
|
484 | $ hg debugsidedata -m -- 0 | |
485 | $ cat << EOF > .hg/hgrc |
|
485 | $ cat << EOF > .hg/hgrc | |
486 | > [format] |
|
486 | > [format] | |
487 | > use-side-data = yes |
|
487 | > exp-use-side-data = yes | |
488 | > exp-use-copies-side-data-changeset = no |
|
488 | > exp-use-copies-side-data-changeset = no | |
489 | > EOF |
|
489 | > EOF | |
490 | $ hg debugupgraderepo --run --quiet --no-backup > /dev/null |
|
490 | $ hg debugupgraderepo --run --quiet --no-backup > /dev/null |
@@ -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.use-side-data=yes |
|
13 | $ hg init test-sidedata --config format.exp-use-side-data=yes | |
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.use-side-data=no |
|
51 | $ hg init up-no-side-data --config format.exp-use-side-data=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 | |
@@ -60,7 +60,7 b' Check that we can upgrade to sidedata' | |||||
60 | plain-cl-delta: yes yes yes |
|
60 | plain-cl-delta: yes yes yes | |
61 | compression: zlib zlib zlib |
|
61 | compression: zlib zlib zlib | |
62 | compression-level: default default default |
|
62 | compression-level: default default default | |
63 | $ hg debugformat -v -R up-no-side-data --config format.use-side-data=yes |
|
63 | $ hg debugformat -v -R up-no-side-data --config format.exp-use-side-data=yes | |
64 | format-variant repo config default |
|
64 | format-variant repo config default | |
65 | fncache: yes yes yes |
|
65 | fncache: yes yes yes | |
66 | dotencode: yes yes yes |
|
66 | dotencode: yes yes yes | |
@@ -71,12 +71,12 b' Check that we can upgrade to sidedata' | |||||
71 | plain-cl-delta: yes yes yes |
|
71 | plain-cl-delta: yes yes yes | |
72 | compression: zlib zlib zlib |
|
72 | compression: zlib zlib zlib | |
73 | compression-level: default default default |
|
73 | compression-level: default default default | |
74 | $ hg debugupgraderepo -R up-no-side-data --config format.use-side-data=yes > /dev/null |
|
74 | $ hg debugupgraderepo -R up-no-side-data --config format.exp-use-side-data=yes > /dev/null | |
75 |
|
75 | |||
76 | Check that we can downgrade from sidedata |
|
76 | Check that we can downgrade from sidedata | |
77 | ----------------------------------------- |
|
77 | ----------------------------------------- | |
78 |
|
78 | |||
79 | $ hg init up-side-data --config format.use-side-data=yes |
|
79 | $ hg init up-side-data --config format.exp-use-side-data=yes | |
80 | $ hg debugformat -v -R up-side-data |
|
80 | $ hg debugformat -v -R up-side-data | |
81 | format-variant repo config default |
|
81 | format-variant repo config default | |
82 | fncache: yes yes yes |
|
82 | fncache: yes yes yes | |
@@ -88,7 +88,7 b' Check that we can downgrade from sidedat' | |||||
88 | plain-cl-delta: yes yes yes |
|
88 | plain-cl-delta: yes yes yes | |
89 | compression: zlib zlib zlib |
|
89 | compression: zlib zlib zlib | |
90 | compression-level: default default default |
|
90 | compression-level: default default default | |
91 | $ hg debugformat -v -R up-side-data --config format.use-side-data=no |
|
91 | $ hg debugformat -v -R up-side-data --config format.exp-use-side-data=no | |
92 | format-variant repo config default |
|
92 | format-variant repo config default | |
93 | fncache: yes yes yes |
|
93 | fncache: yes yes yes | |
94 | dotencode: yes yes yes |
|
94 | dotencode: yes yes yes | |
@@ -99,4 +99,4 b' Check that we can downgrade from sidedat' | |||||
99 | plain-cl-delta: yes yes yes |
|
99 | plain-cl-delta: yes yes yes | |
100 | compression: zlib zlib zlib |
|
100 | compression: zlib zlib zlib | |
101 | compression-level: default default default |
|
101 | compression-level: default default default | |
102 | $ hg debugupgraderepo -R up-side-data --config format.use-side-data=no > /dev/null |
|
102 | $ hg debugupgraderepo -R up-side-data --config format.exp-use-side-data=no > /dev/null |
@@ -1410,7 +1410,7 b' Check upgrading to a side-data revlog' | |||||
1410 |
|
1410 | |||
1411 | upgrade |
|
1411 | upgrade | |
1412 |
|
1412 | |||
1413 | $ hg --config format.use-side-data=yes debugupgraderepo --run --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" >/dev/null |
|
1413 | $ hg --config format.exp-use-side-data=yes debugupgraderepo --run --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" >/dev/null | |
1414 | $ hg debugformat -v |
|
1414 | $ hg debugformat -v | |
1415 | format-variant repo config default |
|
1415 | format-variant repo config default | |
1416 | fncache: yes yes yes |
|
1416 | fncache: yes yes yes | |
@@ -1439,7 +1439,7 b' upgrade' | |||||
1439 |
|
1439 | |||
1440 | downgrade |
|
1440 | downgrade | |
1441 |
|
1441 | |||
1442 | $ hg debugupgraderepo --config format.use-side-data=no --run --no-backup > /dev/null |
|
1442 | $ hg debugupgraderepo --config format.exp-use-side-data=no --run --no-backup > /dev/null | |
1443 | $ hg debugformat -v |
|
1443 | $ hg debugformat -v | |
1444 | format-variant repo config default |
|
1444 | format-variant repo config default | |
1445 | fncache: yes yes yes |
|
1445 | fncache: yes yes yes | |
@@ -1466,7 +1466,7 b' upgrade from hgrc' | |||||
1466 |
|
1466 | |||
1467 | $ cat >> .hg/hgrc << EOF |
|
1467 | $ cat >> .hg/hgrc << EOF | |
1468 | > [format] |
|
1468 | > [format] | |
1469 | > use-side-data=yes |
|
1469 | > exp-use-side-data=yes | |
1470 | > EOF |
|
1470 | > EOF | |
1471 | $ hg debugupgraderepo --run --no-backup > /dev/null |
|
1471 | $ hg debugupgraderepo --run --no-backup > /dev/null | |
1472 | $ hg debugformat -v |
|
1472 | $ hg debugformat -v |
General Comments 0
You need to be logged in to leave comments.
Login now