usage: add a `usage.repository-role` config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 09 Oct 2023 15:06:21 +0200
changeset 51282 d737bc8a36c9
parent 51281 8f1983318455
child 51283 83c6dceeb10d
usage: add a `usage.repository-role` config This config will be used for behavior and performance adjustment depending of the repository role.
mercurial/configitems.toml
mercurial/helptext/config.txt
--- a/mercurial/configitems.toml	Wed Dec 13 13:46:28 2023 +0100
+++ b/mercurial/configitems.toml	Mon Oct 09 15:06:21 2023 +0200
@@ -2489,6 +2489,18 @@
 default = false
 
 [[items]]
+section = "usage"
+name = "repository-role"
+default = "default"
+documentation = """What this repository is used for.
+
+This is used to adjust behavior and performance to best fit the repository purpose.
+
+Currently recognised values are:
+- default: an all purpose repository
+"""
+
+[[items]]
 section = "verify"
 name = "skipflags"
 default = 0
--- a/mercurial/helptext/config.txt	Wed Dec 13 13:46:28 2023 +0100
+++ b/mercurial/helptext/config.txt	Mon Oct 09 15:06:21 2023 +0200
@@ -2994,6 +2994,18 @@
     Increase the amount of output printed. (default: False)
 
 
+``usage``
+---------
+
+``repository-role``
+    What this repository is used for.
+
+    This is used to adjust behavior and performance to best fit the repository purpose.
+
+    Currently recognised values are:
+    - default: an all purpose repository
+
+
 ``command-templates``
 ---------------------