comparison hgext/pager.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 0baf41e02a4d
children 59d794154e8d
comparison
equal deleted inserted replaced
25185:bf6b476f3b36 25186:80c5b2666a96
57 57
58 import atexit, sys, os, signal, subprocess, errno, shlex 58 import atexit, sys, os, signal, subprocess, errno, shlex
59 from mercurial import commands, dispatch, util, extensions, cmdutil 59 from mercurial import commands, dispatch, util, extensions, cmdutil
60 from mercurial.i18n import _ 60 from mercurial.i18n import _
61 61
62 # Note for extension authors: ONLY specify testedwith = 'internal' for
63 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
64 # be specifying the version(s) of Mercurial they are tested with, or
65 # leave the attribute unspecified.
62 testedwith = 'internal' 66 testedwith = 'internal'
63 67
64 def _pagerfork(ui, p): 68 def _pagerfork(ui, p):
65 if not util.safehasattr(os, 'fork'): 69 if not util.safehasattr(os, 'fork'):
66 sys.stdout = util.popen(p, 'wb') 70 sys.stdout = util.popen(p, 'wb')