# HG changeset patch # User Sean Farley # Date 1464382980 25200 # Node ID ffa194c3a83c8952802f789da93c884e4c4b4e09 # Parent 04b68ce5e9648440e6f1aecc5ece23191d85954d histedit: use _getsummary in ruleeditor This patch uses our common method instead of duplicating logic. diff -r 04b68ce5e964 -r ffa194c3a83c hgext/histedit.py --- 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('!'):