comparison hgext/highlight/__init__.py @ 29841:d5883fd055c6

extensions: change magic "shipped with hg" string I've caught multiple extensions in the wild lying about being 'internal', so it's time to move the goalposts on people. Goalpost moving will continue until third party extensions stop trying to defeat the system.
author Augie Fackler <augie@google.com>
date Tue, 23 Aug 2016 11:26:08 -0400
parents 6a98f9408a50
children 9fc3d814646e
comparison
equal deleted inserted replaced
29840:4435d4c951ec 29841:d5883fd055c6
39 encoding, 39 encoding,
40 extensions, 40 extensions,
41 fileset, 41 fileset,
42 ) 42 )
43 43
44 # Note for extension authors: ONLY specify testedwith = 'internal' for 44 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
45 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 45 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
46 # be specifying the version(s) of Mercurial they are tested with, or 46 # be specifying the version(s) of Mercurial they are tested with, or
47 # leave the attribute unspecified. 47 # leave the attribute unspecified.
48 testedwith = 'internal' 48 testedwith = 'ships-with-hg-core'
49 49
50 def pygmentize(web, field, fctx, tmpl): 50 def pygmentize(web, field, fctx, tmpl):
51 style = web.config('web', 'pygments_style', 'colorful') 51 style = web.config('web', 'pygments_style', 'colorful')
52 expr = web.config('web', 'highlightfiles', "size('<5M')") 52 expr = web.config('web', 'highlightfiles', "size('<5M')")
53 filenameonly = web.configbool('web', 'highlightonlymatchfilename', False) 53 filenameonly = web.configbool('web', 'highlightonlymatchfilename', False)