[PATCH 2 of 6] histedit: remove unneeded initial parameter
Sean Farley
sean at farley.io
Tue Jun 21 19:32:42 EDT 2016
# HG changeset patch
# User Sean Farley <sean at 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
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
More information about the Mercurial-devel
mailing list