inhibit: be more flexible on createmarkers API
This API got touched in core.
--- 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()