Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 18858:f02045645d12
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 02 Apr 2013 01:15:31 -0500 |
parents | 35fb2ef52a39 50c922c1b514 |
children | 60e060f4faa9 |
line wrap: on
line diff
--- 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: