changeset 52692:61bddae63bbe

slow-path: move the persistent-nodemap slow-path doc at the toml level We can now store documentation in the configitem declaration, lets do it for this option we are about to touch.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 09 Dec 2024 06:23:24 +0100
parents 6d132bbc5a7f
children 3b0625a3f04a
files mercurial/configitems.toml mercurial/helptext/config.txt
diffstat 2 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/configitems.toml	Tue Jan 07 12:00:07 2025 -0500
+++ b/mercurial/configitems.toml	Mon Dec 09 06:23:24 2024 +0100
@@ -2235,6 +2235,17 @@
 section = "storage"
 name = "revlog.persistent-nodemap.slow-path"
 default = "abort"
+documentation = """Control the behavior of Mercurial when using a repository with a "persistent"
+nodemap with an installation of Mercurial without a fast implementation for
+the feature:
+
+``allow``: Silently use the slower implementation to access the repository.
+``warn``: Warn, but use the slower implementation to access the repository.
+``abort``: Prevent access to such repositories. (This is the default)
+
+For details on the "persistent-nodemap" feature, see:
+:hg:`help config.format.use-persistent-nodemap`.
+"""
 
 [[items]]
 section = "storage"
--- a/mercurial/helptext/config.txt	Tue Jan 07 12:00:07 2025 -0500
+++ b/mercurial/helptext/config.txt	Mon Dec 09 06:23:24 2024 +0100
@@ -2385,16 +2385,7 @@
     :hg:`help config.format.use-persistent-nodemap`.
 
 ``revlog.persistent-nodemap.slow-path``
-    Control the behavior of Merucrial when using a repository with "persistent"
-    nodemap with an installation of Mercurial without a fast implementation for
-    the feature:
-
-    ``allow``: Silently use the slower implementation to access the repository.
-    ``warn``: Warn, but use the slower implementation to access the repository.
-    ``abort``: Prevent access to such repositories. (This is the default)
-
-    For details on the "persistent-nodemap" feature, see:
-    :hg:`help config.format.use-persistent-nodemap`.
+    :config-doc:`storage.revlog.persistent-nodemap.slow-path`
 
 ``revlog.reuse-external-delta-parent``
     Control the order in which delta parents are considered when adding new