changelog: hexlify node when throwing a LookupError on a filtered node
authorAugie Fackler <raf@durin42.com>
Sat, 09 Feb 2013 06:07:32 -0600
changeset 18587 cbf5f3eb9d13
parent 18586 40f9472f5737
child 18588 3241fc65e3cd
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.
mercurial/changelog.py
--- a/mercurial/changelog.py	Fri Feb 08 17:14:12 2013 -0600
+++ b/mercurial/changelog.py	Sat Feb 09 06:07:32 2013 -0600
@@ -183,7 +183,7 @@
         """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):