hgweb: added revision date to annotate line data
authorOli Thissen <oli@tonick.net>
Mon, 06 Dec 2010 16:56:06 +0100
changeset 13199 a38df1250945
parent 13198 e71b2aa74ce3
child 13200 6f011cf52f9a
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.
mercurial/hgweb/webcommands.py
--- 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,