Patchwork D8419: nodemap: move the main switch to the `format` section

login
register
mail settings
Submitter phabricator
Date May 7, 2020, 3:36 p.m.
Message ID <9eb1b7793637702b26086f3621ed48f5@localhost.localdomain>
Download mbox | patch
Permalink /patch/46277/
State Not Applicable
Headers show

Comments

phabricator - May 7, 2020, 3:36 p.m.
Closed by commit rHGd688a8d537b9: nodemap: move the main switch to the `format` section (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/D8419?vs=21230&id=21295

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

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

AFFECTED FILES
  mercurial/configitems.py
  mercurial/localrepo.py
  tests/test-persistent-nodemap.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-persistent-nodemap.t b/tests/test-persistent-nodemap.t
--- a/tests/test-persistent-nodemap.t
+++ b/tests/test-persistent-nodemap.t
@@ -3,8 +3,8 @@ 
 ===================================
 
   $ cat << EOF >> $HGRCPATH
-  > [experimental]
-  > exp-persistent-nodemap=yes
+  > [format]
+  > use-persistent-nodemap=yes
   > [devel]
   > persistent-nodemap=yes
   > EOF
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -3664,7 +3664,7 @@ 
     if ui.configbool(b'format', b'bookmarks-in-store'):
         requirements.add(bookmarks.BOOKMARKS_IN_STORE_REQUIREMENT)
 
-    if ui.configbool(b'experimental', b'exp-persistent-nodemap'):
+    if ui.configbool(b'format', b'use-persistent-nodemap'):
         requirements.add(NODEMAP_REQUIREMENT)
 
     return requirements
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -675,9 +675,6 @@ 
     b'experimental', b'rust.index', default=False,
 )
 coreconfigitem(
-    b'experimental', b'exp-persistent-nodemap', default=False,
-)
-coreconfigitem(
     b'experimental', b'exp-persistent-nodemap.mmap', default=True,
 )
 coreconfigitem(
@@ -787,6 +784,9 @@ 
     b'format', b'usestore', default=True,
 )
 coreconfigitem(
+    b'format', b'use-persistent-nodemap', default=False, experimental=True
+)
+coreconfigitem(
     b'format',
     b'exp-use-copies-side-data-changeset',
     default=False,