Patchwork [3,of,7,evolve-ext] list: limit to descriptions to firstline

login
register
mail settings
Submitter timeless@gcc2-power8.osuosl.org
Date April 14, 2016, 3:05 p.m.
Message ID <6d5f4ff81952cbc23f19.1460646318@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14613/
State Accepted
Headers show

Comments

timeless@gcc2-power8.osuosl.org - April 14, 2016, 3:05 p.m.
# HG changeset patch
# User timeless@gmail.com
# Date 1460590604 0
#      Wed Apr 13 23:36:44 2016 +0000
# Node ID 6d5f4ff81952cbc23f196b60bcd298495b99e5e3
# Parent  13f830540a1471ee8daa4f8de34b830561079369
# Available At https://bitbucket.org/timeless/mutable-history/
#              hg pull https://bitbucket.org/timeless/mutable-history/ -r 6d5f4ff81952
list: limit to descriptions to firstline

Patch

diff -r 13f830540a14 -r 6d5f4ff81952 hgext/evolve.py
--- a/hgext/evolve.py	Fri Apr 08 18:45:58 2016 +0000
+++ b/hgext/evolve.py	Wed Apr 13 23:36:44 2016 +0000
@@ -1577,7 +1577,7 @@ 
         fm.startitem()
         # plain formatter section
         hashlen, desclen = 12, 60
-        desc = ctx.description()
+        desc = ctx.description().splitlines()[0]
         desc = (desc[:desclen] + '...') if len(desc) > desclen else desc
         fm.plain('%s: ' % ctx.hex()[:hashlen])
         fm.plain('%s\n' % desc)