# HG changeset patch # User Sean Farley # Date 2016-05-27 21:02:36 # Node ID 04b68ce5e9648440e6f1aecc5ece23191d85954d # Parent 4c4232e511677f06f684bdbf532bdc9e4adf5c9a histedit: use _getsummary in torule This patch uses our common method instead of duplicating logic. diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -420,9 +420,7 @@ class histeditaction(object): """ ctx = self.repo[self.node] - summary = '' - if ctx.description(): - summary = ctx.description().splitlines()[0] + summary = _getsummary(ctx) line = '%s %s %d %s' % (self.verb, ctx, ctx.rev(), summary) # trim to 75 columns by default so it's not stupidly wide in my editor # (the 5 more are left for verb)