Mercurial > evolve
view hgext3rd/evolve/serveronly.py @ 3601:1cfca1b4f518 stable
tests: extend the globing to the user name
Silly me.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 22 Mar 2018 09:53:42 +0100 |
parents | 3bd642f11313 |
children | e30119dfd626 |
line wrap: on
line source
'''enable experimental obsolescence feature of Mercurial OBSOLESCENCE IS AN EXPERIMENTAL FEATURE MAKE SURE YOU UNDERSTOOD THE INVOLVED CONCEPT BEFORE USING IT. /!\ THIS EXTENSION IS INTENDED FOR SERVER SIDE ONLY USAGE /!\ For client side usages it is recommended to use the evolve extension for improved user interface.''' from __future__ import absolute_import import sys import os from mercurial import obsolete try: from . import ( compat, exthelper, metadata, obscache, obsexchange, ) except ValueError as exc: if str(exc) != '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 ( compat, exthelper, metadata, obscache, obsexchange, ) __version__ = metadata.__version__ testedwith = metadata.testedwith minimumhgversion = metadata.minimumhgversion buglink = metadata.buglink eh = exthelper.exthelper() eh.merge(compat.eh) eh.merge(obscache.eh) eh.merge(obsexchange.eh) uisetup = eh.final_uisetup extsetup = eh.final_extsetup reposetup = eh.final_reposetup cmdtable = eh.cmdtable configtable = eh.configtable @eh.reposetup def default2evolution(ui, repo): evolveopts = repo.ui.configlist('experimental', 'evolution') if not evolveopts: evolveopts = 'all' repo.ui.setconfig('experimental', 'evolution', evolveopts) if obsolete.isenabled(repo, 'exchange'): # if no config explicitly set, disable bundle1 if not isinstance(repo.ui.config('server', 'bundle1'), str): repo.ui.setconfig('server', 'bundle1', False)