changeset 33745: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 fa9f7b5d4397
children 27fb986e54d0
files mercurial/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):