Mercurial > hg
changeset 29468:04b68ce5e964
histedit: use _getsummary in torule
This patch uses our common method instead of duplicating logic.
author | Sean Farley <sean@farley.io> |
---|---|
date | Fri, 27 May 2016 14:02:36 -0700 |
parents | 4c4232e51167 |
children | ffa194c3a83c |
files | hgext/histedit.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Fri May 27 14:00:12 2016 -0700 +++ b/hgext/histedit.py Fri May 27 14:02:36 2016 -0700 @@ -420,9 +420,7 @@ <hash> <rev> <summary> """ 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)