changeset 29469:ffa194c3a83c

histedit: use _getsummary in ruleeditor This patch uses our common method instead of duplicating logic.
author Sean Farley <sean@farley.io>
date Fri, 27 May 2016 14:03:00 -0700
parents 04b68ce5e964
children 2ff243c415b4
files hgext/histedit.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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('!'):