Mercurial > evolve
view tests/testlib/retain-extras-ext.py @ 6831:4f02e7f8d56c stable
evolve: check that the evolved revisions are indeed in the repo during abort
Otherwise we might trigger an error while trying to access a revision that was
saved into evolvestate, but wasn't yet created in the repo for whatever reason.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 23 Aug 2024 17:00:28 +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')