def reposetup(ui, repo): fasupport = import_module('hgext.fastannotate.support') if not fasupport: return # fastannotate in Mercurial 4.8 has buggy hgweb support. We always remove # its monkeypatch if present. try: extensions.unwrapfunction(webutil, b'annotate', fasupport._hgwebannotate) except ValueError: pass # And we install our own if fastannotate is enabled. try: fastannotate = extensions.find(b'fastannotate') except KeyError: fastannotate = None if fastannotate and b'hgweb' in ui.configlist(b'fastannotate', b'modes'): # Guard against recursive chaining, since we're in reposetup(). try: extensions.unwrapfunction(webutil, b'annotate', hgwebfastannotate) except ValueError: pass extensions.wrapfunction(webutil, b'annotate', hgwebfastannotate)
extensions, hg, obsolete, phases, policy, registrar, util, ) from mozhg.util import ( import_module, ) # TRACKING hg46 # wireproto -> wireprotov1server wireproto = import_module('mercurial.wireprotov1server') if not wireproto: wireproto = import_module('mercurial.wireproto') with demandimport.deactivated(): from kafka import SimpleClient import kafka.common as kafkacommon # kafka.codec does module sniffing via imports. Import it explicitly # to force it to import now. import kafka.codec as kafkacodec base85 = policy.importmod('base85') testedwith = '4.3 4.4 4.5 4.6 4.7 4.8 4.9' cmdtable = {}
scmutil, url, util, ) from hgext import mq from collections import Counter, defaultdict, namedtuple OUR_DIR = os.path.dirname(__file__) with open(os.path.join(OUR_DIR, '..', 'bootstrap.py')) as f: exec(f.read()) from mozautomation.commitparser import BUG_RE from mozhg.util import import_module logcmdutil = import_module('mercurial.logcmdutil') configtable = {} configitem = registrar.configitem(configtable) # TRACKING hg44 generic argument added in 4.4. try: configitem('reviewers', '.*', generic=True) except TypeError: pass configitem('bugzilla', 'jsonrpc-url', default=None) configitem('bugzilla', 'url', default=None)
) OUR_DIR = os.path.dirname(__file__) with open(os.path.join(OUR_DIR, '..', 'bootstrap.py')) as f: exec(f.read()) from mozautomation.repository import ( MULTI_TREE_ALIASES, resolve_trees_to_uris, resolve_uri_to_tree, TRY_TREES, ) from mozhg.util import import_module # TRACKING hg46 logcmdutil = import_module('mercurial.logcmdutil') # TRACKING hg47 templateutil = import_module('mercurial.templateutil') wireproto = import_module('mercurial.wireprotov1server') if not wireproto: wireproto = import_module('mercurial.wireproto') testedwith = '4.4 4.5 4.6 4.7 4.8 4.9' minimumhgversion = '4.4' buglink = 'https://bugzilla.mozilla.org/enter_bug.cgi?product=Developer%20Services&component=Mercurial%3A%20firefoxtree' # The root revisions in mozilla-central and comm-central, respectively. MOZ_ROOT_REV = '8ba995b74e18334ab3707f27e9eb8f4e37ba3d29' COMM_ROOT_REV = 'e4f4569d451a5e0d12a6aa33ebd916f979dd8faa'
# This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import collections from mercurial import util from mercurial.node import short from mozautomation.commitparser import ( parse_requal_reviewers, is_backout, ) from mozhg.util import import_module # TRACKING hg47 stringutil = import_module('mercurial.utils.stringutil') if stringutil: email = stringutil.email else: email = util.email from ..checks import ( PreTxnChangegroupCheck, print_banner, print_notice, ) DOM_PEERS = [ dict(name='Andrea Marchesini', nick=['baku'], email=['*****@*****.**']),
testedwith = b'4.7 4.8 4.9 5.0' minimumhgversion = b'4.7' cmdtable = {} command = registrar.command(cmdtable) configtable = {} configitem = registrar.configitem(configtable) configitem(b'overlay', b'sourceurl', default=configitems.dynamicdefault) # TRACKING hg48 # parsemeta is now in storageutil storageutil = import_module('mercurial.utils.storageutil') if util.safehasattr(storageutil, 'parsemeta'): parsemeta = storageutil.parsemeta else: parsemeta = revlog.parsemeta REVISION_KEY = b'subtree_revision' SOURCE_KEY = b'subtree_source' def _ctx_summary(ctx): return [ b'', _(b'changeset: %s') % ctx.hex(), _(b'user: %s') % ctx.user(), _(b'date: %s') % dateutil.datestr(ctx.date()),
) OUR_DIR = os.path.dirname(__file__) with open(os.path.join(OUR_DIR, '..', 'bootstrap.py')) as f: exec(f.read()) from mozautomation.repository import ( MULTI_TREE_ALIASES, resolve_trees_to_uris, resolve_uri_to_tree, TRY_TREES, ) from mozhg.util import import_module # TRACKING hg47 templateutil = import_module('mercurial.templateutil') testedwith = b'4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3' minimumhgversion = b'4.6' buglink = b'https://bugzilla.mozilla.org/enter_bug.cgi?product=Developer%20Services&component=Mercurial%3A%20firefoxtree' # The root revisions in mozilla-central and comm-central, respectively. MOZ_ROOT_REV = b'8ba995b74e18334ab3707f27e9eb8f4e37ba3d29' COMM_ROOT_REV = b'e4f4569d451a5e0d12a6aa33ebd916f979dd8faa' cmdtable = {} configtable = {} keywords = {} command = registrar.command(cmdtable) configitem = registrar.configitem(configtable) templatekeyword = registrar.templatekeyword(keywords)
registrar, util, ) from mercurial.hgweb import ( hgweb_mod, hgwebdir_mod, ) OUR_DIR = os.path.normpath(os.path.dirname(__file__)) execfile(os.path.join(OUR_DIR, '..', 'bootstrap.py')) from mozhg.util import import_module # TRACKING hg46 mercurial.hgweb.protocol effectively renamed to # mercurial.wireprotoserver protocol = import_module('mercurial.hgweb.protocol') wireprotoserver = import_module('mercurial.wireprotoserver') # TRACKING hg46 mercurial.sshserver renamed to mercurial.wireprotoserver sshserver = import_module('mercurial.sshserver') # TRACKING hg46 mercurial.wireprototypes introduced this version wireprototypes = import_module('mercurial.wireprototypes') # TRACKING hg46 mercurial.wireprotov1server contains unified code for # dispatching a wire protocol command wireprotov1server = import_module('mercurial.wireprotov1server') # TRACKING hg46 mercurial.wireproto split up and renamed wireproto = import_module('mercurial.wireproto')
extensions, localrepo, registrar, revset, util, ) from mercurial.hgweb import ( webutil, ) OUR_DIR = os.path.normpath(os.path.dirname(__file__)) execfile(os.path.join(OUR_DIR, '..', 'bootstrap.py')) from mozhg.util import import_module # TRACKING hg46 wireproto = import_module('mercurial.wireprotov1server') if not wireproto: wireproto = import_module('mercurial.wireproto') # TRACKING hg47 dateutil = import_module('mercurial.utils.dateutil') if dateutil: makedate = dateutil.makedate matchdate = dateutil.matchdate else: makedate = util.makedate matchdate = util.matchdate Abort = error.Abort RepoLookupError = error.RepoLookupError