changeset 43384:1edf620a37a3 stable

py3: encode strings before setting rev summary in gnuarch converter
author Denis Laxalde <denis@laxalde.org>
date Mon, 04 Nov 2019 10:09:08 +0100
parents 0f890ce15888
children 6469c23a40a2
files hgext/convert/gnuarch.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/gnuarch.py	Mon Nov 04 09:56:10 2019 +0100
+++ b/hgext/convert/gnuarch.py	Mon Nov 04 10:09:08 2019 +0100
@@ -310,7 +310,10 @@
 
             # Commit description
             self.changes[rev].summary = b'\n\n'.join(
-                (catlog[r'Summary'], catlog.get_payload())
+                (
+                    self.recode(catlog[r'Summary']),
+                    self.recode(catlog.get_payload()),
+                )
             )
             self.changes[rev].summary = self.recode(self.changes[rev].summary)