obsolete: use bytes() instead of str() so the node is bytes on py3
authorAugie Fackler <augie@google.com>
Mon, 24 Jul 2017 10:37:39 -0400
changeset 33719 388901a15bfa
parent 33718 fa9f7b5d4397
child 33720 27fb986e54d0
obsolete: use bytes() instead of str() so the node is bytes on py3 I'm not sure this is right, since this should either be bytes or str to match what's going on in the revlog layer. Differential Revision: https://phab.mercurial-scm.org/D271
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Mon Jul 24 23:56:17 2017 -0400
+++ b/mercurial/obsolete.py	Mon Jul 24 10:37:39 2017 -0400
@@ -583,7 +583,7 @@
 
         metadata = tuple(sorted(metadata.iteritems()))
 
-        marker = (str(prec), tuple(succs), int(flag), metadata, date, parents)
+        marker = (bytes(prec), tuple(succs), int(flag), metadata, date, parents)
         return bool(self.add(transaction, [marker]))
 
     def add(self, transaction, markers):