changeset 1975:6e1a8ea5d717

Duplicate cache when creating templater.
author Shun-ichi Goto <shunichi.goto@gmail.com>
date Sat, 18 Mar 2006 09:51:25 -0800
parents 0d54675cd566
children df8416346bb7
files mercurial/templater.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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