Mercurial > evolve
changeset 2462:560175d6a83e stable
inhibit: be more flexible on createmarkers API
This API got touched in core.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 21 May 2017 23:56:33 +0200 |
parents | 64cc0b059073 |
children | 2b53a2a21bbb |
files | hgext3rd/evolve/hack/inhibit.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/hack/inhibit.py Sun May 21 14:20:24 2017 +0200 +++ b/hgext3rd/evolve/hack/inhibit.py Sun May 21 23:56:33 2017 +0200 @@ -176,14 +176,14 @@ finally: tr.release() -def _createmarkers(orig, repo, relations, flag=0, date=None, metadata=None): +def _createmarkers(orig, repo, relations, *args, **kwargs): """wrap markers create to make sure we de-inhibit target nodes""" # wrapping transactio to unify the one in each function lock = tr = None try: lock = repo.lock() tr = repo.transaction('add-obsolescence-marker') - orig(repo, relations, flag, date, metadata) + orig(repo, relations, *args, **kwargs) precs = (r[0].node() for r in relations) _deinhibitmarkers(repo, precs) tr.close()