serveronly: use the same extensions metadata than evolve
This will avoid them to drift out of sync with evolve.
--- 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