Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 34044:b2eb0aa445cb
revlog: use pycompat.bytestr() to reliably have a %s-able value
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 21:21:43 -0400 |
parents | 9180f8f593f3 |
children | bfb38c5cebf4 |
comparison
equal
deleted
inserted
replaced
34043:626a28f30dbd | 34044:b2eb0aa445cb |
---|---|
1471 if node != self.hash(text, p1, p2): | 1471 if node != self.hash(text, p1, p2): |
1472 revornode = rev | 1472 revornode = rev |
1473 if revornode is None: | 1473 if revornode is None: |
1474 revornode = templatefilters.short(hex(node)) | 1474 revornode = templatefilters.short(hex(node)) |
1475 raise RevlogError(_("integrity check failed on %s:%s") | 1475 raise RevlogError(_("integrity check failed on %s:%s") |
1476 % (self.indexfile, revornode)) | 1476 % (self.indexfile, pycompat.bytestr(revornode))) |
1477 | 1477 |
1478 def checkinlinesize(self, tr, fp=None): | 1478 def checkinlinesize(self, tr, fp=None): |
1479 """Check if the revlog is too big for inline and convert if so. | 1479 """Check if the revlog is too big for inline and convert if so. |
1480 | 1480 |
1481 This should be called after revisions are added to the revlog. If the | 1481 This should be called after revisions are added to the revlog. If the |