# HG changeset patch # User Augie Fackler # Date 1500907059 14400 # Node ID 388901a15bfa8f606612430a52f79097693d16b5 # Parent fa9f7b5d439770f9421478aced650e54c6a868ab 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 diff -r fa9f7b5d4397 -r 388901a15bfa 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):