hg site extension
 
(Arne Babenhauserheide)
2011-11-24: FIX more wrong paths

FIX more wrong paths

diff --git a/site.py b/site.py
--- a/site.py
+++ b/site.py
@@ -60,7 +60,7 @@ templates = {
     "manifesthead": """<h2>""" + _("Commit")+""": <a href='../../commit/{hex}.html'>{hex}</a></h2>
 <p>{desc}</p><p>{user}</p>
     <h2>""" + _("Files in this revision") + "</h2>", 
-    "commitlog": """<div style='float: right; padding-left: 0.5em'><em>({author|person})</em></div><strong> {date|shortdate}: <a href='{relativepath}src/{node}/'>{desc|strip|fill68|firstline}</a></strong> <span style='font-size: xx-small'>{branches} {tags} {bookmarks}</span><p>{desc|escape}</p>\n"""
+    "commitlog": """<div style='float: right; padding-left: 0.5em'><em>({author|person})</em></div><strong> {date|shortdate}: <a href='{relativepath}src/{node}/index.html'>{desc|strip|fill68|firstline}</a></strong> <span style='font-size: xx-small'>{branches} {tags} {bookmarks}</span><p>{desc|escape}</p>\n"""
 }
 
 _indexregexp = re.compile("^\\.*index.html$")
@@ -177,7 +177,7 @@ def writecommits(ui, repo, target, name,
         os.makedirs(commit)
 
     t = cmdutil.changeset_templater(ui, repo, patch=False, diffopts=None, mapfile=None, buffered=False)
-    t.use_template(templates["commitlog"])
+    t.use_template(templates["commitlog"].replace("{relativepath}", "../"))
     for c in range(len(repo.changelog)):
         ctx = repo.changectx(str(c))
         cpath = join(commit, ctx.hex() + ".html")