changeset 29466:a0efbfbba7b5

histedit: remove unneeded initial parameter Now that the autoverb logic no longer acts on an individual rule line, we don't need this parameter since we apply our logic just once at the time of initialization.
author Sean Farley <sean@farley.io>
date Thu, 26 May 2016 15:43:00 -0700
parents 00d2bf4137e6
children 4c4232e51167
files hgext/histedit.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Thu May 26 16:46:10 2016 -0700
+++ b/hgext/histedit.py	Thu May 26 15:43:00 2016 -0700
@@ -413,7 +413,7 @@
             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:
@@ -1323,7 +1323,7 @@
                 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'})