--- a/mercurial/hgweb/hgweb_mod.py Thu Mar 28 18:27:19 2013 -0700
+++ b/mercurial/hgweb/hgweb_mod.py Tue Apr 02 01:15:31 2013 -0500
@@ -250,7 +250,8 @@
except (error.LookupError, error.RepoLookupError), err:
req.respond(HTTP_NOT_FOUND, ctype)
msg = str(err)
- if util.safehasattr(err, 'name') and 'manifest' not in msg:
+ if (util.safehasattr(err, 'name') and
+ not isinstance(err, error.ManifestLookupError)):
msg = 'revision not found: %s' % err.name
return tmpl('error', error=msg)
except (error.RepoError, error.RevlogError), inst: