hgext/absorb.py
changeset 49027 0f0e3830c099
parent 48946 642e31cb55f0
child 49072 3cd57e2be49b
--- 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',