diff mercurial/hgweb/webutil.py @ 37103:be3f33f5e232

templater: switch 'revcache' based on new mapping items It was pretty easy to leave a stale 'revcache' when switching 'ctx'. Let's make it be automatically replaced.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 15 Mar 2018 21:52:47 +0900
parents f0b6fbea00cf
children 44f3b60deafb
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Thu Mar 15 21:49:33 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Thu Mar 15 21:52:47 2018 +0900
@@ -392,7 +392,6 @@
         # filectx, but I'm not pretty sure if that would always work because
         # fctx.parents() != fctx.changectx.parents() for example.
         'ctx': ctx,
-        'revcache': {},
         'rev': ctx.rev(),
         'node': hex(node),
         'author': ctx.user(),