# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 2020-07-14 08:25:41
# Node ID e699cebc3ae90f5c05e1709b07eac090d56e30d0
# Parent  2c0043977b6d640d237e52abb75562a741c0c919

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().

diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py
--- a/hgext/convert/monotone.py
+++ b/hgext/convert/monotone.py
@@ -337,7 +337,7 @@ class monotone_source(common.converter_s
         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"],