# HG changeset patch # User Pierre-Yves David # Date 1495403935 -7200 # Node ID 08c552a5eb3764e509aefddf842434e209b1abe7 # Parent 3c9a74763c201b05b95c41f8651eadb0e98a9011 obshistory: be more flexible about createmarkers API The API got touched in core. diff -r 3c9a74763c20 -r 08c552a5eb37 hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Sun May 21 14:27:23 2017 +0200 +++ b/hgext3rd/evolve/obshistory.py Sun May 21 23:58:55 2017 +0200 @@ -437,7 +437,8 @@ return True @eh.wrapfunction(obsolete, 'createmarkers') -def createmarkerswithbits(orig, repo, relations, flag=0, date=None, metadata=None): +def createmarkerswithbits(orig, repo, relations, flag=0, date=None, + metadata=None, **kwargs): """compute 'effect-flag' and augment the created markers Wrap obsolete.createmarker in order to compute the effect of each @@ -453,7 +454,7 @@ provide precomputed effect to avoid the overhead. """ if not repo.ui.configbool('experimental', 'evolution.effect-flags', False): - return orig(repo, relations, flag, date, metadata) + return orig(repo, relations, flag, date, metadata, **kwargs) if metadata is None: metadata = {} tr = repo.transaction('add-obsolescence-marker') @@ -470,7 +471,7 @@ m['ef1'] = "%d" % effect # And call obsolete.createmarkers for creating the obsmarker for real - orig(repo, [r], flag, date, m) + orig(repo, [r], flag, date, m, **kwargs) tr.close() finally: