Submitter | phabricator |
---|---|
Date | Nov. 16, 2020, 7:10 p.m. |
Message ID | <differential-rev-PHID-DREV-wtkwu5l4bvxr53nhvc4b-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/47601/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -528,7 +528,8 @@ summary = cmdutil.rendertemplate( ctx, ui.config(b'histedit', b'summary-template') ) - summary = summary.splitlines()[0] + # Handle the fact that `''.splitlines() => []` + summary = summary.splitlines()[0] if summary else b'' line = b'%s %s %s' % (self.verb, ctx, summary) # trim to 75 columns by default so it's not stupidly wide in my editor # (the 5 more are left for verb)