Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 3150:95c77ef938ef
compat: drop compatibility dance around configoverride
This was introduced in hg-4.1 and we do no longer support lower versions.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 25 Oct 2017 07:32:06 +0200 |
parents | f9faa5b6f937 |
children | f286eefbd20d |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Wed Oct 25 04:45:31 2017 +0200 +++ b/hgext3rd/topic/__init__.py Wed Oct 25 07:32:06 2017 +0200 @@ -769,11 +769,8 @@ # phase handling commitphase = c.phase() - if util.safehasattr(repo.ui, 'configoverride'): - overrides = {('phases', 'new-commit'): commitphase} - with repo.ui.configoverride(overrides, 'changetopic'): - newnode = repo.commitctx(mc) - else: # do not attempt to preserver phase (hg <= 4.0) + overrides = {('phases', 'new-commit'): commitphase} + with repo.ui.configoverride(overrides, 'changetopic'): newnode = repo.commitctx(mc) successors[c.node()] = (newnode,)