serveronly: use the same extensions metadata than evolve
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 07 Mar 2017 13:31:19 +0100
changeset 2050 604ecce27969
parent 2049 b81d3775006b
child 2051 74934195747b
serveronly: use the same extensions metadata than evolve This will avoid them to drift out of sync with evolve.
hgext3rd/evolve/serveronly.py
--- a/hgext3rd/evolve/serveronly.py	Tue Mar 07 13:24:07 2017 +0100
+++ b/hgext3rd/evolve/serveronly.py	Tue Mar 07 13:31:19 2017 +0100
@@ -10,16 +10,12 @@
 
 from __future__ import absolute_import
 
-testedwith = '3.3 3.4-rc'
-buglink = 'https://bz.mercurial-scm.org/'
-
 import hashlib
 import struct
 from cStringIO import StringIO
 import sys
 import os
 
-
 from mercurial import (
     error,
     exchange,
@@ -48,13 +44,25 @@
 from mercurial import pushkey
 
 try:
-    from . import utility
+    from . import (
+        metadata,
+        utility,
+    )
 except ValueError as exc:
     if exc.message != 'Attempted relative import in non-package':
         raise
     # extension imported using direct path
     sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
-    from evolve import utility
+    from evolve import (
+        metadata,
+        utility,
+    )
+
+
+__version__ = metadata.__version__
+testedwith = metadata.testedwith
+minimumhgversion = metadata.minimumhgversion
+buglink = metadata.buglink
 
 obsexcmsg = utility.obsexcmsg