Patchwork [2,of,2,STABLE] help: document the minimumhgversion variable for extensions

login
register
mail settings
Submitter Matt Harbison
Date Jan. 19, 2019, 5:29 a.m.
Message ID <60b24e6f514beb0552d8.1547875770@Envy>
Download mbox | patch
Permalink /patch/37882/
State Accepted
Headers show

Comments

Matt Harbison - Jan. 19, 2019, 5:29 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1547871776 18000
#      Fri Jan 18 23:22:56 2019 -0500
# Branch stable
# Node ID 60b24e6f514beb0552d8a979c882f2861ec84e49
# Parent  9b57d98e8fe910d033575fadeac91be1eae59f6f
help: document the minimumhgversion variable for extensions

Patch

diff --git a/mercurial/help/internals/extensions.txt b/mercurial/help/internals/extensions.txt
--- a/mercurial/help/internals/extensions.txt
+++ b/mercurial/help/internals/extensions.txt
@@ -313,6 +313,14 @@  error message if the extension produces 
 
     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?
 ============================