Mercurial > evolve
view tests/testlib/retain-extras-ext.py @ 6600:421dc5c11108
topic: use dirstate.branch() instead of wdir.branch()
Since we wrap context.branch method to return branch in FQBN format already, we
cannot simply use its result with formatfqbn() again. Let's use something that
we don't wrap in topic extension, such as dirstate.branch().
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 29 Oct 2023 15:56:57 -0300 |
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')