# HG changeset patch # User Martin von Zweigbergk # Date 1648184727 25200 # Node ID 0f0e3830c099b1293e023bcaa05da838744ee186 # Parent 2d519511c5c3af1794d092257250791f8b7f36a1 absorb: use new function for getting first line of string Differential Revision: https://phab.mercurial-scm.org/D12410 diff -r 2d519511c5c3 -r 0f0e3830c099 hgext/absorb.py --- a/hgext/absorb.py Thu Mar 24 22:05:13 2022 -0700 +++ b/hgext/absorb.py Thu Mar 24 22:05:27 2022 -0700 @@ -1062,7 +1062,7 @@ fm.context(ctx=ctx) fm.data(linetype=b'changeset') fm.write(b'node', b'%-7.7s ', ctx.hex(), label=b'absorb.node') - descfirstline = ctx.description().splitlines()[0] + descfirstline = stringutil.firstline(ctx.description()) fm.write( b'descfirstline', b'%s\n',