This revision was automatically updated to reflect the committed changes. Closed by commit rHGbd0086bd3af4: rebase: inline _makextrafn() now that we have only one caller (authored by martinvonz, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2918?vs=7181&id=7210 REVISION DETAIL https://phab.mercurial-scm.org/D2918 AFFECTED FILES hgext/rebase.py CHANGE DETAILS diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -87,17 +87,6 @@ def _savebranch(ctx, extra): extra['branch'] = ctx.branch() -def _makeextrafn(copiers): - """make an extrafn out of the given copy-functions. - - A copy function takes a context and an extra dict, and mutates the - extra dict as needed based on the given context. - """ - def extrafn(ctx, extra): - for c in copiers: - c(ctx, extra) - return extrafn - def _destrebase(repo, sourceset, destspace=None): """small wrapper around destmerge to pass the right extra args @@ -457,10 +446,9 @@ ctx = repo[rev] if commitmsg is None: commitmsg = ctx.description() - extrafn = _makeextrafn(self.extrafns) extra = {'rebase_source': ctx.hex()} - if extrafn: - extrafn(ctx, extra) + for c in self.extrafns: + c(ctx, extra) if self.inmemory: newnode = concludememorynode(repo, ctx, p1, p2, wctx=self.wctx, To: martinvonz, phillco, #hg-reviewers, indygreg Cc: indygreg, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel