Don't create repo objects in hgwebdir, ui object is enough.
#header#
<title>#repo|escape#: manifest #manifest|short#</title>
</head>
<body>
<div class="buttons">
<a href="?cmd=changelog;rev=#rev#">changelog</a>
<a href="?cmd=tags">tags</a>
<a href="?cmd=changeset;node=#node#">changeset</a>
</div>
<h2>manifest #manifest|short#: #path#</h2>
<table cellpadding="0" cellspacing="0">
<tr class="parity1">
<td><tt>drwxr-xr-x</tt>
<td><a href="?cmd=manifest;manifest=#manifest#;path=#up#">[up]</a>
#dentries%manifestdirentry#
#fentries%manifestfileentry#
</table>
#footer#