Mercurial > hg > evolve
changeset 2146:604ecce27969
serveronly: use the same extensions metadata than evolve
This will avoid them to drift out of sync with evolve.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 07 Mar 2017 13:31:19 +0100 |
parents | b81d3775006b |
children | 74934195747b |
files | hgext3rd/evolve/serveronly.py |
diffstat | 1 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/serveronly.py +++ b/hgext3rd/evolve/serveronly.py @@ -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