hgweb.cgi and hgwebdir.cgi fixes/cleanups for user configurable parts:
- "import os" was missing in hgwebdir.cgi, added to comments for both script.
- HGENCODING has to be set before importing hgweb, otherwise you'll get
mixed encoding in changelog vs. file content/diffs.
- "import sys" is only needed when changing sys.path
- document purpose of cgitb.
#header#
<title>#repo|escape#: tags</title>
<link rel="alternate" type="application/rss+xml"
href="#url#rss-tags" title="RSS feed for #repo|escape#: tags">
</head>
<body>
<div class="buttons">
<a href="#url#log{sessionvars%urlparameter}">changelog</a>
<a href="#url#shortlog{sessionvars%urlparameter}">shortlog</a>
<a href="#url#file/#node|short#/{sessionvars%urlparameter}">manifest</a>
<a type="application/rss+xml" href="#url#rss-tags">rss</a>
</div>
<h2>tags:</h2>
<ul id="tagEntries">
#entries%tagentry#
</ul>
#footer#