diff mercurial/obsolete.py @ 33719:388901a15bfa

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
author Augie Fackler <augie@google.com>
date Mon, 24 Jul 2017 10:37:39 -0400
parents e5f8c7baa729
children 32d4f815c4f4
line wrap: on
line diff
--- 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):