@@ -62,11 +62,11 @@ from mercurial import (
util,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
cmdtable = {}
command = cmdutil.command(cmdtable)
@@ -204,11 +204,11 @@ from mercurial import (
urlreq = util.urlreq
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def _getusers(ui, group):
@@ -51,11 +51,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
lastui = None
filehandles = {}
@@ -294,11 +294,11 @@ from mercurial import (
urlparse = util.urlparse
xmlrpclib = util.xmlrpclib
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
class bzaccess(object):
'''Base class for access to Bugzilla.'''
@@ -42,11 +42,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('censor',
[('r', 'rev', '', _('censor file from specified revision'), _('REV')),
@@ -63,11 +63,11 @@ from mercurial import (
util,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
_log = commandserver.log
@@ -26,11 +26,11 @@ templateopts = commands.templateopts
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('children',
[('r', 'rev', '',
@@ -26,11 +26,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def maketemplater(ui, repo, tmpl):
return cmdutil.changeset_templater(ui, repo, False, None, tmpl, None, False)
@@ -169,7 +169,7 @@ from mercurial import (
wireproto,
)
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def capabilities(orig, repo, proto):
caps = orig(repo, proto)
@@ -170,11 +170,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# start and stop parameters for effects
_effects = {'none': 0, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33,
@@ -23,11 +23,11 @@ from . import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# Commands definition was moved elsewhere to ease demandload job.
@@ -104,11 +104,11 @@ from mercurial import (
util,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# Matches a lone LF, i.e., one that is not part of CRLF.
singlelf = re.compile('(^|[^\r])\n')
@@ -84,11 +84,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def snapshot(ui, repo, files, node, tmproot, listsubrepos):
'''snapshot files as of some revision
@@ -26,11 +26,11 @@ from mercurial import (
release = lock.release
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('fetch',
[('r', 'rev', [],
@@ -113,11 +113,11 @@ from . import (
watchmanclient,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# This extension is incompatible with the following blacklisted extensions
# and will disable itself when encountering one of these:
@@ -23,11 +23,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
class gpg(object):
def __init__(self, path, key=None):
@@ -25,11 +25,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('glog',
[('f', 'follow', None,
@@ -54,11 +54,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('debug-diff-tree',
[('p', 'patch', None, _('generate patch')),
@@ -41,11 +41,11 @@ from mercurial import (
fileset,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def pygmentize(web, field, fctx, tmpl):
style = web.config('web', 'pygments_style', 'colorful')
@@ -213,11 +213,11 @@ class _constraints(object):
def known(cls):
return set([v for k, v in cls.__dict__.items() if k[0] != '_'])
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
actiontable = {}
primaryactions = set()
@@ -39,11 +39,11 @@ from . import share
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# storage format version; increment when the format changes
storageversion = 0
@@ -112,11 +112,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# hg commands that do not act on keywords
nokwcommands = ('add addremove annotate bundle export grep incoming init log'
@@ -119,11 +119,11 @@ from . import (
uisetup as uisetupmod,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
reposetup = reposetup.reposetup
@@ -40,11 +40,11 @@ import platform
import subprocess
import sys
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def uisetup(ui):
if platform.system() == 'Windows':
@@ -99,11 +99,11 @@ seriesopts = [('s', 'summary', None, _('
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# force load strip extension formerly included in mq and import some utility
try:
@@ -148,11 +148,11 @@ from mercurial import (
util,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# template for single changeset can include email headers.
single_template = '''
@@ -75,11 +75,11 @@ from mercurial import (
util,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def _runpager(ui, p):
pager = subprocess.Popen(p, shell=True, bufsize=-1,
@@ -87,11 +87,11 @@ stringio = util.stringio
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def _addpullheader(seq, ctx):
"""Add a header pointing to a public URL where the changeset is available
@@ -38,11 +38,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('purge|clean',
[('a', 'abort-on-err', None, _('abort if an error occurs')),
@@ -66,11 +66,11 @@ revskipped = (revignored, revprecursor,
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def _nothingtorebase():
return 1
@@ -22,11 +22,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command("record",
@@ -21,11 +21,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('relink', [], _('[ORIGIN]'))
def relink(ui, repo, origin=None, **opts):
@@ -56,11 +56,11 @@ from mercurial import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
class ShortRepository(object):
@@ -56,11 +56,11 @@ parseurl = hg.parseurl
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
@command('share',
[('U', 'noupdate', None, _('do not create a working directory')),
@@ -54,11 +54,11 @@ from . import (
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
backupdir = 'shelve-backup'
shelvedir = 'shelved'
@@ -23,11 +23,11 @@ release = lockmod.release
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
def checksubstate(repo, baserev=None):
'''return list of subrepos at a different revision than substate.
@@ -40,11 +40,11 @@ class TransplantError(error.Abort):
cmdtable = {}
command = cmdutil.command(cmdtable)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
class transplantentry(object):
def __init__(self, lnode, rnode):
@@ -55,11 +55,11 @@ from mercurial import (
error,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
_encoding = None # see extsetup
@@ -52,11 +52,11 @@ from mercurial import (
util,
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# regexp for single LF without CR preceding.
re_single_lf = re.compile('(^|[^\r])\n', re.MULTILINE)
@@ -40,11 +40,11 @@ from mercurial.hgweb import (
server as servermod
)
-# Note for extension authors: ONLY specify testedwith = 'internal' for
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
-testedwith = 'internal'
+testedwith = 'ships-with-hg-core'
# publish
@@ -2396,6 +2396,10 @@ def debugextensions(ui, **opts):
for extname, extmod in sorted(exts, key=operator.itemgetter(0)):
extsource = extmod.__file__
exttestedwith = getattr(extmod, 'testedwith', '').split()
+ if exttestedwith == ['ships-with-hg-core']:
+ showtestedwith = ['internal']
+ else:
+ showtestedwith = exttestedwith
extbuglink = getattr(extmod, 'buglink', None)
fm.startitem()
@@ -2406,7 +2410,8 @@ def debugextensions(ui, **opts):
fm.write('name', '%s', extname)
if not exttestedwith:
fm.plain(_(' (untested!)\n'))
- elif exttestedwith == ['internal'] or hgver in exttestedwith:
+ elif (exttestedwith == ['ships-with-hg-core']
+ or hgver in exttestedwith):
fm.plain('\n')
else:
lasttestedversion = exttestedwith[-1]
@@ -2415,9 +2420,9 @@ def debugextensions(ui, **opts):
fm.condwrite(ui.verbose and extsource, 'source',
_(' location: %s\n'), extsource or "")
- fm.condwrite(ui.verbose and exttestedwith, 'testedwith',
+ fm.condwrite(ui.verbose and showtestedwith, 'testedwith',
_(' tested with: %s\n'),
- fm.formatlist(exttestedwith, name='ver'))
+ fm.formatlist(showtestedwith, name='ver'))
fm.condwrite(ui.verbose and extbuglink, 'buglink',
_(' bug reporting: %s\n'), extbuglink or "")
@@ -927,7 +927,7 @@ def _exceptionwarning(ui):
break
# Never blame on extensions bundled with Mercurial.
- if testedwith == 'internal':
+ if testedwith == 'ships-with-hg-core':
continue
tested = [util.versiontuple(t, 2) for t in testedwith.split()]
@@ -532,4 +532,4 @@ def moduleversion(module):
def ismoduleinternal(module):
exttestedwith = getattr(module, 'testedwith', None)
- return exttestedwith == "internal"
+ return exttestedwith == "ships-with-hg-core"