Skip to content
Snippets Groups Projects
Commit a0efbfbba7b5 authored by Sean Farley's avatar Sean Farley
Browse files

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.
parent 00d2bf4137e6
No related branches found
No related tags found
No related merge requests found
......@@ -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'})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment