changeset 49029:eb8aed493a56

logcmdutil: use new function for getting first line of string Differential Revision: https://phab.mercurial-scm.org/D12412
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 24 Mar 2022 22:05:49 -0700
parents db93041e5b1c
children 75794847ef62
files mercurial/logcmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/logcmdutil.py	Thu Mar 24 22:05:36 2022 -0700
+++ b/mercurial/logcmdutil.py	Thu Mar 24 22:05:49 2022 -0700
@@ -416,7 +416,7 @@
                 self.ui.write(b"\n\n")
             else:
                 self.ui.write(
-                    columns[b'summary'] % description.splitlines()[0],
+                    columns[b'summary'] % stringutil.firstline(description),
                     label=b'log.summary',
                 )
         self.ui.write(b"\n")