Patchwork [2,of,3] histedit: allow actions to adjust the default edit plan

login
register
mail settings
Submitter timeless
Date May 3, 2016, 4:12 p.m.
Message ID <0a6112a63cbbf284ed71.1462291973@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14864/
State Superseded
Headers show

Comments

timeless - May 3, 2016, 4:12 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# 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

Patch

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 <src>