comparison 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
comparison
equal deleted inserted replaced
13198:e71b2aa74ce3 13199:a38df1250945
548 "desc": f.description(), 548 "desc": f.description(),
549 "file": f.path(), 549 "file": f.path(),
550 "targetline": targetline, 550 "targetline": targetline,
551 "line": l, 551 "line": l,
552 "lineid": "l%d" % (lineno + 1), 552 "lineid": "l%d" % (lineno + 1),
553 "linenumber": "% 6d" % (lineno + 1)} 553 "linenumber": "% 6d" % (lineno + 1),
554 "revdate": f.date()}
554 555
555 return tmpl("fileannotate", 556 return tmpl("fileannotate",
556 file=f, 557 file=f,
557 annotate=annotate, 558 annotate=annotate,
558 path=webutil.up(f), 559 path=webutil.up(f),