diff tests/hghaveaddon.py @ 6501:c48420c2143c stable

tests: update tests output for changegroup3 becoming the new default CORE-TEST-OUTPUT-UPDATE: 2cf264e9aa75
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 29 Mar 2023 20:36:58 -0300
parents f2139537c2be
children 9638dd0fb4ea
line wrap: on
line diff
--- a/tests/hghaveaddon.py	Thu Mar 23 10:49:19 2023 -0300
+++ b/tests/hghaveaddon.py	Wed Mar 29 20:36:58 2023 -0300
@@ -28,3 +28,12 @@
 def has_check_manifest():
     return hghave.matchoutput('check-manifest --version 2>&1',
                               br'check-manifest version')
+
+@hghave.check("default-cg3", "changegroup3 by default")
+def has_default_changegroup3():
+    from mercurial import configitems
+
+    try:
+        return configitems.coreitems[b'experimental'][b'changegroup3'].default
+    except (AttributeError, KeyError):
+        return False