(Arne Babenhauserheide)
2011-10-20: link files to the tip revision manifest. link files to the tip revision manifest.
diff --git a/static.py b/static.py
--- a/static.py
+++ b/static.py
@@ -73,7 +73,7 @@ templates = {
"printstyle": """ """,
"manifesthead": """<h2>Commit: {hex} </h2>
<p>{desc}</p><p>{user}</p>
- <h2>Files changed</h2>"""
+ <h2>Files in this revision</h2>"""
}
@@ -99,7 +99,7 @@ def writeoverview(ui, repo, target, name
overview.write( "\n".join(readme.splitlines()[:3]))
break
# now the links to the log and the files.
- overview.write("<p><a href='commits'>changelog</a> | <a href='src'>files</a></p>")
+ overview.write("<p><a href='commits'>changelog</a> | <a href='src/" + repo["tip"].hex() + "'>files</a></p>")
# now add the 5 most recent log entries
# divert all following ui output to a string, so we can just use standard functions
overview.write("<h2>Changes (<a href='commits'>full changelog</a>)</h2>")