Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 47174:0a66eef0ed97
revlog: use revlog.display_id in integrity error
Differential Revision: https://phab.mercurial-scm.org/D10586
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:24:18 +0200 |
parents | 1ec64f59dc27 |
children | f574734eb2b7 |
line wrap: on
line diff
--- a/mercurial/revlog.py Mon May 03 12:24:08 2021 +0200 +++ b/mercurial/revlog.py Mon May 03 12:24:18 2021 +0200 @@ -1941,7 +1941,7 @@ revornode = templatefilters.short(hex(node)) raise error.RevlogError( _(b"integrity check failed on %s:%s") - % (self._indexfile, pycompat.bytestr(revornode)) + % (self.display_id, pycompat.bytestr(revornode)) ) except error.RevlogError: if self._censorable and storageutil.iscensoredtext(text):