diff mercurial/hgweb/webcommands.py @ 13199:a38df1250945

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.
author Oli Thissen <oli@tonick.net>
date Mon, 06 Dec 2010 16:56:06 +0100
parents ef969e58a394
children 270f57d35525
line wrap: on
line diff
--- 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,