comparison mercurial/verify.py @ 36185:acc8e6e52af6

py3: use "%d" to convert integers to bytes Differential Revision: https://phab.mercurial-scm.org/D2263
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 14 Feb 2018 17:05:33 +0530
parents 35fb3367f72d
children a4d41ba4ad23
comparison
equal deleted inserted replaced
36184:56635c506608 36185:acc8e6e52af6
58 self.warnings += 1 58 self.warnings += 1
59 59
60 def err(self, linkrev, msg, filename=None): 60 def err(self, linkrev, msg, filename=None):
61 if linkrev is not None: 61 if linkrev is not None:
62 self.badrevs.add(linkrev) 62 self.badrevs.add(linkrev)
63 linkrev = "%d" % linkrev
63 else: 64 else:
64 linkrev = '?' 65 linkrev = '?'
65 msg = "%s: %s" % (linkrev, msg) 66 msg = "%s: %s" % (linkrev, msg)
66 if filename: 67 if filename:
67 msg = "%s@%s" % (filename, msg) 68 msg = "%s@%s" % (filename, msg)