changeset 45092:e699cebc3ae9 stable

convert: use bytes for value in extra dict The keys and values of the extra dict are expected to be bytes. Before this fix, there was a crash in mercurial.changelog.encodeextra().
author Manuel Jacob <me@manueljacob.de>
date Tue, 14 Jul 2020 10:25:41 +0200
parents 2c0043977b6d
children de1d3f4246e9 28163c5de797
files hgext/convert/monotone.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/monotone.py	Wed Jul 08 08:57:21 2020 +0200
+++ b/hgext/convert/monotone.py	Tue Jul 14 10:25:41 2020 +0200
@@ -337,7 +337,7 @@
         extra = {}
         certs = self.mtngetcerts(rev)
         if certs.get(b'suspend') == certs[b"branch"]:
-            extra[b'close'] = 1
+            extra[b'close'] = b'1'
         dateformat = b"%Y-%m-%dT%H:%M:%S"
         return common.commit(
             author=certs[b"author"],