comparison hgext/purge.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 e049338d1a7b
children 4b0fc75f9403
comparison
equal deleted inserted replaced
25185:bf6b476f3b36 25186:80c5b2666a96
28 from mercurial.i18n import _ 28 from mercurial.i18n import _
29 import os 29 import os
30 30
31 cmdtable = {} 31 cmdtable = {}
32 command = cmdutil.command(cmdtable) 32 command = cmdutil.command(cmdtable)
33 # Note for extension authors: ONLY specify testedwith = 'internal' for
34 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
35 # be specifying the version(s) of Mercurial they are tested with, or
36 # leave the attribute unspecified.
33 testedwith = 'internal' 37 testedwith = 'internal'
34 38
35 @command('purge|clean', 39 @command('purge|clean',
36 [('a', 'abort-on-err', None, _('abort if an error occurs')), 40 [('a', 'abort-on-err', None, _('abort if an error occurs')),
37 ('', 'all', None, _('purge ignored files too')), 41 ('', 'all', None, _('purge ignored files too')),