histedit: use _getsummary in ruleeditor
This patch uses our common method instead of duplicating logic.
--- a/hgext/histedit.py Fri May 27 14:02:36 2016 -0700
+++ b/hgext/histedit.py Fri May 27 14:03:00 2016 -0700
@@ -1318,10 +1318,7 @@
if repo.ui.configbool("experimental", "histedit.autoverb"):
for act in actions:
ctx = repo[act.node]
- summary = ''
- if ctx.description():
- summary = ctx.description().splitlines()[0]
-
+ summary = _getsummary(ctx)
fword = summary.split(' ', 1)[0].lower()
# if it doesn't end with the special character '!' just skip this
if fword.endswith('!'):