py3: encode strings before setting rev summary in gnuarch converter stable
authorDenis Laxalde <denis@laxalde.org>
Mon, 04 Nov 2019 10:09:08 +0100
branchstable
changeset 43384 1edf620a37a3
parent 43383 0f890ce15888
child 43385 6469c23a40a2
py3: encode strings before setting rev summary in gnuarch converter
hgext/convert/gnuarch.py
--- 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)