changeset 43167:bca9d1a6c4c5

sidedata: rename the configuration option to `exp-use-side-data` We don't want setup configured to use the final version that would end using the experimental one while using and older version. Differential Revision: https://phab.mercurial-scm.org/D7040
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 10 Oct 2019 04:34:58 +0200
parents a5b04863dbff
children 01e8eefd9434
files mercurial/configitems.py mercurial/localrepo.py tests/test-copies-in-changeset.t tests/test-sidedata.t tests/test-upgrade-repo.t
diffstat 5 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/configitems.py	Thu Oct 10 16:02:47 2019 +0200
+++ b/mercurial/configitems.py	Thu Oct 10 04:34:58 2019 +0200
@@ -757,7 +757,7 @@
     experimental=True,
 )
 coreconfigitem(
-    b'format', b'use-side-data', default=False, experimental=True,
+    b'format', b'exp-use-side-data', default=False, experimental=True,
 )
 coreconfigitem(
     b'format', b'internal-phase', default=False, experimental=True,
--- a/mercurial/localrepo.py	Thu Oct 10 16:02:47 2019 +0200
+++ b/mercurial/localrepo.py	Thu Oct 10 04:34:58 2019 +0200
@@ -3526,8 +3526,8 @@
         if ui.configbool(b'format', b'sparse-revlog'):
             requirements.add(SPARSEREVLOG_REQUIREMENT)
 
-    # experimental config: format.use-side-data
-    if ui.configbool(b'format', b'use-side-data'):
+    # experimental config: format.exp-use-side-data
+    if ui.configbool(b'format', b'exp-use-side-data'):
         requirements.add(SIDEDATA_REQUIREMENT)
     # experimental config: format.exp-use-copies-side-data-changeset
     if ui.configbool(b'format', b'exp-use-copies-side-data-changeset'):
--- a/tests/test-copies-in-changeset.t	Thu Oct 10 16:02:47 2019 +0200
+++ b/tests/test-copies-in-changeset.t	Thu Oct 10 04:34:58 2019 +0200
@@ -484,7 +484,7 @@
   $ hg debugsidedata -m -- 0
   $ cat << EOF > .hg/hgrc
   > [format]
-  > use-side-data = yes
+  > exp-use-side-data = yes
   > exp-use-copies-side-data-changeset = no
   > EOF
   $ hg debugupgraderepo --run --quiet --no-backup > /dev/null
--- a/tests/test-sidedata.t	Thu Oct 10 16:02:47 2019 +0200
+++ b/tests/test-sidedata.t	Thu Oct 10 04:34:58 2019 +0200
@@ -10,7 +10,7 @@
   > testsidedata=$TESTDIR/testlib/ext-sidedata.py
   > EOF
 
-  $ hg init test-sidedata --config format.use-side-data=yes
+  $ hg init test-sidedata --config format.exp-use-side-data=yes
   $ cd test-sidedata
   $ echo aaa > a
   $ hg add a
@@ -48,7 +48,7 @@
 Check that we can upgrade to sidedata
 -------------------------------------
 
-  $ hg init up-no-side-data --config format.use-side-data=no
+  $ hg init up-no-side-data --config format.exp-use-side-data=no
   $ hg debugformat -v -R up-no-side-data
   format-variant    repo config default
   fncache:           yes    yes     yes
@@ -60,7 +60,7 @@
   plain-cl-delta:    yes    yes     yes
   compression:       zlib   zlib    zlib
   compression-level: default default default
-  $ hg debugformat -v -R up-no-side-data --config format.use-side-data=yes
+  $ hg debugformat -v -R up-no-side-data --config format.exp-use-side-data=yes
   format-variant    repo config default
   fncache:           yes    yes     yes
   dotencode:         yes    yes     yes
@@ -71,12 +71,12 @@
   plain-cl-delta:    yes    yes     yes
   compression:       zlib   zlib    zlib
   compression-level: default default default
-  $ hg debugupgraderepo -R up-no-side-data --config format.use-side-data=yes > /dev/null
+  $ hg debugupgraderepo -R up-no-side-data --config format.exp-use-side-data=yes > /dev/null
 
 Check that we can downgrade from sidedata
 -----------------------------------------
 
-  $ hg init up-side-data --config format.use-side-data=yes
+  $ hg init up-side-data --config format.exp-use-side-data=yes
   $ hg debugformat -v -R up-side-data
   format-variant    repo config default
   fncache:           yes    yes     yes
@@ -88,7 +88,7 @@
   plain-cl-delta:    yes    yes     yes
   compression:       zlib   zlib    zlib
   compression-level: default default default
-  $ hg debugformat -v -R up-side-data --config format.use-side-data=no
+  $ hg debugformat -v -R up-side-data --config format.exp-use-side-data=no
   format-variant    repo config default
   fncache:           yes    yes     yes
   dotencode:         yes    yes     yes
@@ -99,4 +99,4 @@
   plain-cl-delta:    yes    yes     yes
   compression:       zlib   zlib    zlib
   compression-level: default default default
-  $ hg debugupgraderepo -R up-side-data --config format.use-side-data=no > /dev/null
+  $ hg debugupgraderepo -R up-side-data --config format.exp-use-side-data=no > /dev/null
--- a/tests/test-upgrade-repo.t	Thu Oct 10 16:02:47 2019 +0200
+++ b/tests/test-upgrade-repo.t	Thu Oct 10 04:34:58 2019 +0200
@@ -1410,7 +1410,7 @@
 
 upgrade
 
-  $ hg --config format.use-side-data=yes debugupgraderepo --run  --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" >/dev/null
+  $ hg --config format.exp-use-side-data=yes debugupgraderepo --run  --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" >/dev/null
   $ hg debugformat -v
   format-variant    repo config default
   fncache:           yes    yes     yes
@@ -1439,7 +1439,7 @@
 
 downgrade
 
-  $ hg debugupgraderepo --config format.use-side-data=no --run --no-backup > /dev/null
+  $ hg debugupgraderepo --config format.exp-use-side-data=no --run --no-backup > /dev/null
   $ hg debugformat -v
   format-variant    repo config default
   fncache:           yes    yes     yes
@@ -1466,7 +1466,7 @@
 
   $ cat >> .hg/hgrc << EOF
   > [format]
-  > use-side-data=yes
+  > exp-use-side-data=yes
   > EOF
   $ hg debugupgraderepo --run --no-backup > /dev/null
   $ hg debugformat -v