# HG changeset patch # User Augie Fackler # Date 2013-02-09 12:07:32 # Node ID cbf5f3eb9d134b642631f96c84e895d6cc3a65f1 # Parent 40f9472f5737e5157554572915431bbbd59d98a0 changelog: hexlify node when throwing a LookupError on a filtered node The non-hexlified node was leaking all the way out to the web interface, and wasn't consistent with the behavior for nonexistent nodes. diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -183,7 +183,7 @@ class changelog(revlog.revlog): """filtered version of revlog.rev""" r = super(changelog, self).rev(node) if r in self.filteredrevs: - raise error.LookupError(node, self.indexfile, _('no node')) + raise error.LookupError(hex(node), self.indexfile, _('no node')) return r def node(self, rev):