comparison hgext/gpg.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 ecf296652080
children 82f1ef8b4477
comparison
equal deleted inserted replaced
29840:4435d4c951ec 29841:d5883fd055c6
21 util, 21 util,
22 ) 22 )
23 23
24 cmdtable = {} 24 cmdtable = {}
25 command = cmdutil.command(cmdtable) 25 command = cmdutil.command(cmdtable)
26 # Note for extension authors: ONLY specify testedwith = 'internal' for 26 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
27 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 27 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
28 # be specifying the version(s) of Mercurial they are tested with, or 28 # be specifying the version(s) of Mercurial they are tested with, or
29 # leave the attribute unspecified. 29 # leave the attribute unspecified.
30 testedwith = 'internal' 30 testedwith = 'ships-with-hg-core'
31 31
32 class gpg(object): 32 class gpg(object):
33 def __init__(self, path, key=None): 33 def __init__(self, path, key=None):
34 self.path = path 34 self.path = path
35 self.key = (key and " --local-user \"%s\"" % key) or "" 35 self.key = (key and " --local-user \"%s\"" % key) or ""