Patchwork D7040: sidedata: rename the configuration option to `exp-use-side-data`

login
register
mail settings
Submitter phabricator
Date Oct. 11, 2019, 4:21 a.m.
Message ID <8d032aca9d9b78a270620a86a0459eba@localhost.localdomain>
Download mbox | patch
Permalink /patch/42215/
State Not Applicable
Headers show

Comments

phabricator - Oct. 11, 2019, 4:21 a.m.
Closed by commit rHGbca9d1a6c4c5: sidedata: rename the configuration option to `exp-use-side-data` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7040?vs=17046&id=17063

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7040/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7040

AFFECTED FILES
  mercurial/configitems.py
  mercurial/localrepo.py
  tests/test-copies-in-changeset.t
  tests/test-sidedata.t
  tests/test-upgrade-repo.t

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-upgrade-repo.t b/tests/test-upgrade-repo.t
--- a/tests/test-upgrade-repo.t
+++ b/tests/test-upgrade-repo.t
@@ -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
diff --git a/tests/test-sidedata.t b/tests/test-sidedata.t
--- a/tests/test-sidedata.t
+++ b/tests/test-sidedata.t
@@ -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
diff --git a/tests/test-copies-in-changeset.t b/tests/test-copies-in-changeset.t
--- a/tests/test-copies-in-changeset.t
+++ b/tests/test-copies-in-changeset.t
@@ -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
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -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'):
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -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,