comparison tests/hghaveaddon.py @ 6508:21b4943dc4f0 mercurial-6.1

test-compat: merge mercurial-6.2 into mercurial-6.1
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 30 Jun 2023 15:30:09 -0300
parents c48420c2143c
children 9638dd0fb4ea
comparison
equal deleted inserted replaced
6461:64485b2fcd97 6508:21b4943dc4f0
26 26
27 @hghave.check("check-manifest", "check-manifest MANIFEST.in checking tool") 27 @hghave.check("check-manifest", "check-manifest MANIFEST.in checking tool")
28 def has_check_manifest(): 28 def has_check_manifest():
29 return hghave.matchoutput('check-manifest --version 2>&1', 29 return hghave.matchoutput('check-manifest --version 2>&1',
30 br'check-manifest version') 30 br'check-manifest version')
31
32 @hghave.check("default-cg3", "changegroup3 by default")
33 def has_default_changegroup3():
34 from mercurial import configitems
35
36 try:
37 return configitems.coreitems[b'experimental'][b'changegroup3'].default
38 except (AttributeError, KeyError):
39 return False