view tests/testlib/retain-extras-ext.py @ 6934:dd518437d4e0 stable

tests: introduce a compat-branches blacklist file The idea behind this file is to have an easy and obvious mechanism for skipping some tests on compatibility branches without modifying the test files themselves or touching .gitlab-ci.yml. Obviously, each compatibility branch can have different set of tests, and so the contents of this file can be different on different branches. This concept had actually existed in core for a long time, see tests/blacklists/ directory.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 16 Nov 2024 17:59:53 +0400
parents e36883d88108
children
line wrap: on
line source

"""
Wrap 'retained_extras_on_rebase' (from either mercurial or evolve) to retain
the "useful" extra.
"""

from mercurial import rewriteutil

try:
    rewriteutil.retained_extras_on_rebase
except AttributeError:
    # install the compatibility layer on older version
    from hgext3rd.evolve import compat
    compat.retained_extras_on_rebase # silence linter

def extsetup(ui):
    rewriteutil.retained_extras_on_rebase.add(b'useful')