inhibit: be more flexible on createmarkers API stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 21 May 2017 23:56:33 +0200
branchstable
changeset 2462 560175d6a83e
parent 2460 64cc0b059073
child 2464 2b53a2a21bbb
inhibit: be more flexible on createmarkers API This API got touched in core.
hgext3rd/evolve/hack/inhibit.py
--- 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()