comparison mercurial/extensions.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 19578bb84731
children b1ebc767563d
comparison
equal deleted inserted replaced
29840:4435d4c951ec 29841:d5883fd055c6
530 version = '.'.join(str(o) for o in version) 530 version = '.'.join(str(o) for o in version)
531 return version 531 return version
532 532
533 def ismoduleinternal(module): 533 def ismoduleinternal(module):
534 exttestedwith = getattr(module, 'testedwith', None) 534 exttestedwith = getattr(module, 'testedwith', None)
535 return exttestedwith == "internal" 535 return exttestedwith == "ships-with-hg-core"