changeset 36085:4b843cb6eb8c

narrow: remove old version-checking logic and declare internal Differential Revision: https://phab.mercurial-scm.org/D1980
author Augie Fackler <augie@google.com>
date Thu, 01 Feb 2018 18:02:32 -0500
parents dc01484606da
children bc01f48c18cc
files hgext/narrow/__init__.py
diffstat 1 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/__init__.py	Thu Feb 01 17:19:41 2018 -0500
+++ b/hgext/narrow/__init__.py	Thu Feb 01 18:02:32 2018 -0500
@@ -8,16 +8,11 @@
 
 from __future__ import absolute_import
 
-from mercurial import __version__
-if __version__.version < '3.7':
-    raise ImportError(
-        'narrowhg requires mercurial 3.7 or newer')
-
-try:
-    from .__versionnum__ import version
-    __version__ = version
-except ImportError:
-    pass
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
+# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
+# be specifying the version(s) of Mercurial they are tested with, or
+# leave the attribute unspecified.
+testedwith = 'ships-with-hg-core'
 
 from mercurial import (
     extensions,