Mercurial > hg
comparison hgext/highlight/__init__.py @ 25186:80c5b2666a96
extensions: document that `testedwith = 'internal'` is special
Extension authors (notably at companies using hg) have been
cargo-culting the `testedwith = 'internal'` bit from hg's own
extensions, which then defeats our "file bugs over here" logic in
dispatch. Let's be more aggressive about trying to give extension
authors a hint about what testedwith should say.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 28 Apr 2015 16:44:37 -0400 |
parents | 681f7b9213a4 |
children | 85fb416f2fa7 |
comparison
equal
deleted
inserted
replaced
25185:bf6b476f3b36 | 25186:80c5b2666a96 |
---|---|
22 """ | 22 """ |
23 | 23 |
24 import highlight | 24 import highlight |
25 from mercurial.hgweb import webcommands, webutil, common | 25 from mercurial.hgweb import webcommands, webutil, common |
26 from mercurial import extensions, encoding | 26 from mercurial import extensions, encoding |
27 # Note for extension authors: ONLY specify testedwith = 'internal' for | |
28 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | |
29 # be specifying the version(s) of Mercurial they are tested with, or | |
30 # leave the attribute unspecified. | |
27 testedwith = 'internal' | 31 testedwith = 'internal' |
28 | 32 |
29 def filerevision_highlight(orig, web, tmpl, fctx): | 33 def filerevision_highlight(orig, web, tmpl, fctx): |
30 mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) | 34 mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) |
31 # only pygmentize for mimetype containing 'html' so we both match | 35 # only pygmentize for mimetype containing 'html' so we both match |