Fix handling of paths when run outside the repo.
The main problem was that dirstate.getcwd() returned just "",
which was interpreted as "we're at the repo root". It now returns
an absolute path.
The util.pathto function was also changed to deal with the "cwd is
an absolute path" case.
#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#