Mercurial > hg-stable
changeset 18587:cbf5f3eb9d13
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.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 09 Feb 2013 06:07:32 -0600 |
parents | 40f9472f5737 |
children | 3241fc65e3cd |
files | mercurial/changelog.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):