view tests/testlib/retain-extras-ext.py @ 6932:2efcacc03010 stable

obshashrange: avoid executing too many DELETE requests at once While running such delete requests, the process ignores keyboard interrupts, which is not great, especially when there are half a million of them… Avoiding to run that many will be covered in the next changeset.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 04 Nov 2024 12:07:33 +0100
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')