revlog: use revlog.display_id for FilteredLookupError
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:23:17 +0200
changeset 47154 4532166a50b1
parent 47153 fbf38517d17d
child 47155 96ee8ca99f5a
revlog: use revlog.display_id for FilteredLookupError Differential Revision: https://phab.mercurial-scm.org/D10580
mercurial/repoview.py
--- a/mercurial/repoview.py	Mon May 03 12:23:07 2021 +0200
+++ b/mercurial/repoview.py	Mon May 03 12:23:17 2021 +0200
@@ -333,7 +333,7 @@
         r = super(filteredchangelogmixin, self).rev(node)
         if r in self.filteredrevs:
             raise error.FilteredLookupError(
-                hex(node), self._indexfile, _(b'filtered node')
+                hex(node), self.display_id, _(b'filtered node')
             )
         return r