changeset 41294:b5d7413e4009 stable

help: document the minimumhgversion variable for extensions
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 18 Jan 2019 23:22:56 -0500
parents 86f6b441adea
children bf4a078b3f88
files mercurial/help/internals/extensions.txt
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/help/internals/extensions.txt	Fri Jan 18 23:13:04 2019 -0500
+++ b/mercurial/help/internals/extensions.txt	Fri Jan 18 23:22:56 2019 -0500
@@ -313,6 +313,14 @@
 
     buglink = 'https://bitbucket.org/USER/REPO/issues'
 
+If an extension requires a minimum version of Mercurial, it can be declared
+with the ``minimumhgversion`` variable::
+
+    minimumhgversion = '4.6'
+
+Older clients will print a warning that the extension requires a new version,
+instead of attempting to load it.
+
 Wrap up: what belongs where?
 ============================