diff mercurial/formatter.py @ 37102:638a241202a3

templater: add hook point to populate additional mapping items The 'revcache' dict will be inserted by this hook.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 15 Mar 2018 21:49:33 +0900
parents 46859b437697
children be3f33f5e232
line wrap: on
line diff
--- a/mercurial/formatter.py	Sat Mar 24 01:30:50 2018 -0400
+++ b/mercurial/formatter.py	Thu Mar 15 21:49:33 2018 +0900
@@ -517,6 +517,9 @@
             return None
         return get(self, context, mapping, key)
 
+    def populatemap(self, context, origmapping, newmapping):
+        return {}
+
     def _getsome(self, context, mapping, key):
         v = mapping.get(key)
         if v is not None: