Duplicate cache when creating templater.
authorShun-ichi Goto <shunichi.goto@gmail.com>
Sat, 18 Mar 2006 09:51:25 -0800
changeset 1975 6e1a8ea5d717
parent 1974 0d54675cd566
child 1976 df8416346bb7
Duplicate cache when creating templater.
mercurial/templater.py
--- a/mercurial/templater.py	Sat Mar 18 14:36:45 2006 +0100
+++ b/mercurial/templater.py	Sat Mar 18 09:51:25 2006 -0800
@@ -65,7 +65,7 @@
         filters is dict of functions. each transforms a value into another.
         defaults is dict of default map definitions.'''
         self.mapfile = mapfile or 'template'
-        self.cache = cache
+        self.cache = cache.copy()
         self.map = {}
         self.base = (mapfile and os.path.dirname(mapfile)) or ''
         self.filters = filters