Patchwork D10580: revlog: use revlog.display_id for FilteredLookupError

login
register
mail settings
Submitter phabricator
Date May 3, 2021, noon
Message ID <differential-rev-PHID-DREV-w4767tkmsajwfx3hcjt5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48896/
State Superseded
Headers show

Comments

phabricator - May 3, 2021, noon
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10580

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -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