From patchwork Tue May 3 16:12:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2,of,3] histedit: allow actions to adjust the default edit plan From: timeless X-Patchwork-Id: 14864 Message-Id: <0a6112a63cbbf284ed71.1462291973@gcc2-power8.osuosl.org> To: mercurial-devel@mercurial-scm.org Date: Tue, 03 May 2016 16:12:53 +0000 # HG changeset patch # User timeless # Date 1462288681 0 # Tue May 03 15:18:01 2016 +0000 # Node ID 0a6112a63cbbf284ed71912b544d5ec7717a1279 # Parent 1cb074950009a30cb6346f667b4cc40bc51c3d0c # Available At bb://timeless/mercurial-crew # hg pull bb://timeless/mercurial-crew -r 0a6112a63cbb histedit: allow actions to adjust the default edit plan diff -r 1cb074950009 -r 0a6112a63cbb hgext/histedit.py --- a/hgext/histedit.py Tue May 03 15:26:51 2016 +0000 +++ b/hgext/histedit.py Tue May 03 15:18:01 2016 +0000 @@ -499,6 +499,11 @@ return ctx, [] return ctx, [(self.node, (ctx.node(),))] + @classmethod + def initialactions(cls, state, actions): + """Allows action to adjust the default plan for histedit""" + return actions + def commitfuncfor(repo, src): """Build a commit function for the replacement of