changeset 1637:078e6777ac15

list: limit to descriptions to firstline
author timeless@gmail.com
date Wed, 13 Apr 2016 23:36:44 +0000
parents 13f830540a14
children 5b7596805f7f
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Fri Apr 08 18:45:58 2016 +0000
+++ b/hgext/evolve.py	Wed Apr 13 23:36:44 2016 +0000
@@ -1578,6 +1578,8 @@
         # plain formatter section
         hashlen, desclen = 12, 60
         desc = ctx.description()
+        if desc:
+            desc = desc.splitlines()[0]
         desc = (desc[:desclen] + '...') if len(desc) > desclen else desc
         fm.plain('%s: ' % ctx.hex()[:hashlen])
         fm.plain('%s\n' % desc)