hgweb: added revision date to annotate line data
The only revision information yielded by the annotate view was the revision
number itself. The patch allows the use of per-line revision dates in the
corresponding templates.
--- a/mercurial/hgweb/webcommands.py Tue Dec 21 19:44:28 2010 +0900
+++ b/mercurial/hgweb/webcommands.py Mon Dec 06 16:56:06 2010 +0100
@@ -550,7 +550,8 @@
"targetline": targetline,
"line": l,
"lineid": "l%d" % (lineno + 1),
- "linenumber": "% 6d" % (lineno + 1)}
+ "linenumber": "% 6d" % (lineno + 1),
+ "revdate": f.date()}
return tmpl("fileannotate",
file=f,