revlog: use revlog.display_id in "revision too big" errors
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:24:40 +0200
changeset 47162 dfe8074239de
parent 47161 f574734eb2b7
child 47163 6bc7c467a7d1
revlog: use revlog.display_id in "revision too big" errors Differential Revision: https://phab.mercurial-scm.org/D10588
mercurial/revlog.py
--- a/mercurial/revlog.py	Mon May 03 12:24:29 2021 +0200
+++ b/mercurial/revlog.py	Mon May 03 12:24:40 2021 +0200
@@ -2058,7 +2058,7 @@
                 _(
                     b"%s: size of %d bytes exceeds maximum revlog storage of 2GiB"
                 )
-                % (self._indexfile, len(rawtext))
+                % (self.display_id, len(rawtext))
             )
 
         node = node or self.hash(rawtext, p1, p2)