Mercurial > evolve
comparison 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 |
comparison
equal
deleted
inserted
replaced
3149:79a926b557f1 | 3150:95c77ef938ef |
---|---|
767 date=c.date(), | 767 date=c.date(), |
768 extra=fixedextra) | 768 extra=fixedextra) |
769 | 769 |
770 # phase handling | 770 # phase handling |
771 commitphase = c.phase() | 771 commitphase = c.phase() |
772 if util.safehasattr(repo.ui, 'configoverride'): | 772 overrides = {('phases', 'new-commit'): commitphase} |
773 overrides = {('phases', 'new-commit'): commitphase} | 773 with repo.ui.configoverride(overrides, 'changetopic'): |
774 with repo.ui.configoverride(overrides, 'changetopic'): | |
775 newnode = repo.commitctx(mc) | |
776 else: # do not attempt to preserver phase (hg <= 4.0) | |
777 newnode = repo.commitctx(mc) | 774 newnode = repo.commitctx(mc) |
778 | 775 |
779 successors[c.node()] = (newnode,) | 776 successors[c.node()] = (newnode,) |
780 ui.debug('new node id is %s\n' % node.hex(newnode)) | 777 ui.debug('new node id is %s\n' % node.hex(newnode)) |
781 rewrote += 1 | 778 rewrote += 1 |