configitems: add `documentation` field
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 23 Jan 2023 18:52:05 +0100
changeset 50760 b584dae08774
parent 50759 f0ae403bf704
child 50761 2c34c9b61a4f
configitems: add `documentation` field It may be useful to expose documentation information in the help in some form. This will be populated in a future changeset by using the current comments that are relevant for users.
mercurial/configitems.py
--- a/mercurial/configitems.py	Mon Jan 23 17:21:14 2023 +0100
+++ b/mercurial/configitems.py	Mon Jan 23 18:52:05 2023 +0100
@@ -48,10 +48,12 @@
         generic=False,
         priority=0,
         experimental=False,
+        documentation="",
     ):
         self.section = section
         self.name = name
         self.default = default
+        self.documentation = documentation
         self.alias = list(alias)
         self.generic = generic
         self.priority = priority