Mercurial > hg
changeset 47163:6bc7c467a7d1
revlog: use revlog.display_id in error related to bad revisions
Differential Revision: https://phab.mercurial-scm.org/D10589
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:24:50 +0200 |
parents | dfe8074239de |
children | 04f2f94836a5 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Mon May 03 12:24:40 2021 +0200 +++ b/mercurial/revlog.py Mon May 03 12:24:50 2021 +0200 @@ -2033,7 +2033,7 @@ """ if link == nullrev: raise error.RevlogError( - _(b"attempted to add linkrev -1 to %s") % self._indexfile + _(b"attempted to add linkrev -1 to %s") % self.display_id ) if sidedata is None: @@ -2229,14 +2229,14 @@ """ if node == self.nullid: raise error.RevlogError( - _(b"%s: attempt to add null revision") % self._indexfile + _(b"%s: attempt to add null revision") % self.display_id ) if ( node == self.nodeconstants.wdirid or node in self.nodeconstants.wdirfilenodeids ): raise error.RevlogError( - _(b"%s: attempt to add wdir revision") % self._indexfile + _(b"%s: attempt to add wdir revision") % self.display_id ) if self._inline: