Patchwork [2,of,6] histedit: remove unneeded initial parameter

login
register
mail settings
Submitter Sean Farley
Date June 21, 2016, 11:32 p.m.
Message ID <954822f6dc701096c48c.1466551962@laptop.local>
Download mbox | patch
Permalink /patch/15566/
State Changes Requested
Headers show

Comments

Sean Farley - June 21, 2016, 11:32 p.m.
# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 1464302580 25200
#      Thu May 26 15:43:00 2016 -0700
# Node ID 954822f6dc701096c48c61c9183d8f4c487c4773
# Parent  01212d1f93a2a6c5c736dc0c7d45ffd1930e5c2f
# EXP-Topic autoverb
histedit: remove unneeded initial parameter

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -411,11 +411,11 @@  class histeditaction(object):
             self.node = repo[ha].node()
         except error.RepoError:
             raise error.ParseError(_('unknown changeset %s listed')
                               % ha[:12])
 
-    def torule(self, initial=False):
+    def torule(self):
         """build a histedit rule line for an action
 
         by default lines are in the form:
         <hash> <rev> <summary>
         """
@@ -1321,11 +1321,11 @@  def ruleeditor(repo, ui, actions, editco
             if fword.endswith('!'):
                 fword = fword[:-1]
                 if fword in primaryactions | secondaryactions | tertiaryactions:
                     act.verb = fword
 
-    rules = '\n'.join([act.torule(initial=True) for act in actions])
+    rules = '\n'.join([act.torule() for act in actions])
     rules += '\n\n'
     rules += editcomment
     rules = ui.edit(rules, ui.username(), {'prefix': 'histedit'})
 
     # Save edit rules in .hg/histedit-last-edit.txt in case