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

timeless at gcc2-power8.osuosl.org timeless at gcc2-power8.osuosl.org
Thu Apr 14 11:05:18 EDT 2016


# HG changeset patch
# User timeless at 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

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)


More information about the Mercurial-devel mailing list